Re: [csswg-drafts] [selectors][css-nesting] Move nest-containing and nest-prefixed selector definitions to Selectors (#5745)

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