Re: [csswg-drafts] [css-nesting]: Confusion around __ example. (#6993)

> The output of __bar.foo doesn't seem to match up with other examples. In other examples the parent selector appears in the same position as the & symbol. Is it correct that the .foo appears on the left of __bar and, if so, are there other cases where the selector flips sides?

The order of simple selectors in a compound selector doesn't matter; `.foo.bar` and `.bar.foo` are exactly identical. The only exception is that, for parsing reasons, a tagname selector must be first; that's why the desugared version has that order swapped.

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


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

Received on Wednesday, 26 January 2022 19:55:35 UTC