- From: Devon Govett via GitHub <sysbot+gh@w3.org>
- Date: Sun, 17 Sep 2023 18:43:23 +0000
- To: public-css-archive@w3.org
Am I understanding correctly that
```css
div {
button:focus {
color: var(--x);
}
}
```
would be parsed as a rule but
```css
div {
--button:focus {
color: var(--x);
}
}
```
would be parsed as a declaration?
That second one is parseable as a rule outside of nesting today. Maybe not a problem if element names can't start with `--`. Looks like [custom selectors](https://drafts.csswg.org/css-extensions/#custom-selectors) also require a leading `:`.
--
GitHub Notification of comment by devongovett
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/9317#issuecomment-1722539651 using your GitHub account
--
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Sunday, 17 September 2023 18:43:25 UTC