Re: [csswg-drafts] [selectors][css-nesting] Move nest-containing and nest-prefixed selector definitions to Selectors (#5745)

I don't think that's too confusing if we're consistent about it. The meaning of `&` always changes at different levels of nesting, and scoping is a form of nesting. At each layer, `&` refers to the nesting context. The context of the scope rule is `.media`, the context of the img rule (and siblings to it) is the `:scope`, and the context inside the img rule is the `img` itself. This is not really different from other multi-level nesting situations.

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


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

Received on Friday, 7 October 2022 15:59:48 UTC