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

> The other way to exclude the scope is just `* > ...`, right? And when nesting you can just do `> ...`, which might be simple enough to be worth leaving it as the way to handle things.

Not quite - though your point may still stand. Only the matched element needs to be in scope, the rest of the scoped selector [matches unrestricted](https://www.w3.org/TR/selectors-4/#scoped-selector) – so you would need to explicitly list the scope root itself as the ancestor: `:scope *` would match everything in-scope except for the scope root.

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


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

Received on Monday, 30 January 2023 20:28:19 UTC