- From: Guillaume via GitHub <sysbot+gh@w3.org>
- Date: Mon, 25 Jul 2022 16:47:05 +0000
- To: public-css-archive@w3.org
I was checking if `&div` is valid and found this example in [3. Nesting Selector: the & selector](https://drafts.csswg.org/css-nesting-1/#nest-selector): > For example, `&div` is a valid nesting selector, meaning "whatever the parent rules matches, but only if it’s also a `<div>` element". If I understand this correctly, `div { &div {} }` would be (silly but) valid and you cannot desugar it with `:is(div)div`. I am not sure to understand why `&` compounded with `<type-selector>` would be valid, though. It may be an actual bug in the spec. -- GitHub Notification of comment by cdoublev Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/7433#issuecomment-1194339895 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Monday, 25 July 2022 16:47:07 UTC