Re: [csswg-drafts] [css-cascade-6] Scoped selectors shouldn't match the scope root unless explicitly requested with :scope? (#8377)

The proposed resolution here is: 

- Scoped selectors are implicitly descendants of the scope root (this matches css-nesting)…
- Unless they are _scope-containing_, with either `:scope` or `&` explicitly placed in the selector (the matches and expands on css-nesting)
- In a scoped selector, `:scope` refers to the scope root element (cannot match additional nested elements), while `&` refers to the scoping selector (can match additional nested elements).

This builds on (and clarifies) the resolution in #7854 that `&` should be allowed in a scoping context. It also ensures that scope and nesting behave in similar ways where they overlap. 

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


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

Received on Wednesday, 22 February 2023 18:31:37 UTC