Re: [csswg-drafts] [css-cascade-6] Scoping the subject of a `:has()` selector (#9841)

> Wouldn't it break with further nesting, for example, five levels of nested `<section>`s?

It shouldn't, since `:scope` always refers to the active scope-root, and won't match other potential scopes. That's the difference between `:scope` or `&` in this context. The ampersand represents the scope-selector (and could match out-of-scope sections in this context) - but there is only ever a single relevant matched `:scope` root for a scoped selector.

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


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

Received on Tuesday, 23 January 2024 20:48:45 UTC