Re: [csswg-drafts] [css-nesting-1] Clearer definition of “nest-containing” (#7972)

It does indeed match any `.bar` element (that is, it's equivalent to `.foo .any, .bar {...}`). I agree it feels a little odd (since it's the only way to write such a selector in a nested context), but the behavior isn't totally off-base. After all, `.foo { :not(&) {...}}` selects all the elements on the page that aren't `.foo`, also with absolutely no regard to whether they're in a `.foo` ancestor or not. Nesting isn't `@scope` ^_^

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


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

Received on Wednesday, 25 January 2023 18:14:25 UTC