Re: [csswg-drafts] [css-nesting] selecting grandparent selector with @nest (#6977)

Technically it would expand to the former, but because the `:--granny` inside the `:is` is a less selective version of the `:--granny:not(.c)` outside the `:is`, the two are equivalent in this case (except for specificity). That is, the pattern I outlined was designed specifically to produce roughly that outcome.

You could instead do all sorts of wacky things that don't simplify to something so intuitive. `:not(:--granny) &` is a fun bit of  nonsense to chew on, but I'm sure other possibilities are actually useful.

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


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

Received on Tuesday, 13 September 2022 06:25:42 UTC