- From: Guillaume via GitHub <sysbot+gh@w3.org>
- Date: Tue, 15 Mar 2022 10:42:17 +0000
- To: public-css-archive@w3.org
About its [syntax definition written in prose](https://drafts.csswg.org/css-nesting-1/#nest-selector):
> the nesting selector is allowed anywhere in a compound selector, even before a type selector, violating the normal restrictions on ordering within a compound selector
Does it mean the following value definition?
```
<compound-selector> = [
['&' | <type-selector>]?
['&' | <subclass-selector>]*
[['&' | <pseudo-element-selector>] ['&' | <pseudo-class-selector>]*]*]
]!
```
And what about `:first-child { &::before }`? Is it invalid like `::before:first-child`? Or does it match nothing?
--
GitHub Notification of comment by cdoublev
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/5745#issuecomment-1067830987 using your GitHub account
--
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Tuesday, 15 March 2022 10:42:20 UTC