- From: Guillaume via GitHub <sysbot+gh@w3.org>
- Date: Thu, 16 Feb 2023 20:04:13 +0000
- To: public-css-archive@w3.org
> As currently written, `::before&` is invalid as the selectors grammar only allows `<pseudo-class-selector>` after it. Right, sorry. Thanks for considering allowing it. > I'm not sure why your comment says "::before + :is(span) is invalid"; it's definitely valid per Selectors grammar. I may be misunderstanding [3.6.5. Internal Structure](https://drafts.csswg.org/selectors-4/#pseudo-element-structure): > Some pseudo-elements are defined to have internal structure. These pseudo-elements may be followed by child/descendant combinators to express those relationships. Selectors containing combinators after the pseudo-element are otherwise invalid. So the explicit answer to my question is: if the prelude of a nested style rule is invalid (after desugaring `&`), the whole nested style rule is invalid. Ok, thanks! -- GitHub Notification of comment by cdoublev Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/7503#issuecomment-1433647853 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Thursday, 16 February 2023 20:04:15 UTC