Re: [csswg-drafts] [css-nesting] How to resolve nested CSS with pseudo elements in the parent (#7433)

> Strictly speaking is not a combinator but it kinda behaves like a combinator and probably should have been a combinator and #7346 resolved to work on actual combinators for accessing pseudo-elements.
> 
> I don't get your rearranging argument, `.foo > .bar > .baz` can't be rearranged either as `.foo > .baz > .bar` or something, it's normal not being able to rearrange complex selectors. That's actually an argument in favor of `::` behaving kinda like a combinator.

I didn't mean that kind of rearranging, but that with combinators you can do things like `.foo > :is(.bar) > .baz`, adjust whitespace etc because they are separate tokens. I'm still missing the explanation on how your pseudo-element example differs between the nested and non-nested version.

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


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

Received on Friday, 21 October 2022 19:07:54 UTC