- From: Guillaume via GitHub <sysbot+gh@w3.org>
- Date: Tue, 13 Feb 2024 14:34:40 +0000
- To: public-css-archive@w3.org
cdoublev has just created a new issue for https://github.com/w3c/csswg-drafts: == [css-nesting-1] Should the parent rule be considered when validating a selector containing `&`? == Follow-up on https://github.com/w3c/csswg-drafts/issues/9940#issuecomment-1941374685. Should the nested style rule in `:first-child { ::before& {} }` be valid or invalid? `::before:first-child {}` is [invalid](https://drafts.csswg.org/selectors-4/#pseudo-element-states). This does not seem specified at the moment. It may be surprising to get different results between the flat/nested versions. But setting `CSSStyleRule.selectorText` would require considering the selector of each parent/nested style rules. I am also not sure I understand the reasons why `::before:first-child {}` should be considered invalid, instead of as matching nothing. Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/9943 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Tuesday, 13 February 2024 14:34:43 UTC