Re: [csswg-drafts] [selectors-4] [css-nesting-1] pseudo elements need to be clarified to correctly handle relative selectors. (#7979)

> I guess my best explanation here is that ::before is equivalent to *::before

That (I think) is the best way to look at it.

`::before` has an implicit `*`, so it doesn't start with an implicit combinator.
_this is not going to get easier_

- `::before` -> `*::before`
- `.foo { ::before {} }` -> `.foo *::before`
- `:> before` -> `:scope::before` (hypothical)
- `.foo { :> before {} }` -> `.foo::before` (also hypothical)

-- 
GitHub Notification of comment by romainmenke
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/7979#issuecomment-1301375256 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Wednesday, 2 November 2022 22:04:29 UTC