Re: [csswg-drafts] [css-nesting-1] Nesting with `@scope` and `:scope`/`&` (#8019)

& represents the elements matched by the parent rule; it is *not* a textual substitution of the parent rule's selector. The "desugaring" to flat rules using :is() is informative only; the feature doesn't actually work quite like that.

So in your most recent example, the `:scope` is at the top level and resolves to the root. So the nested `&` represents the root element, and is unaffected by the `@scope` rule.

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


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

Received on Wednesday, 21 December 2022 19:14:12 UTC