Re: [csswg-drafts] [selectors][css-scoping] Should `:host:has()` match? (#10693)

`:host(:has(…))` matches against light DOM children already, at least in Firefox and WebKit, and should continue to go so and expand to Baseline status as soon as possible. This aligns with `:host(.class)` et al also referencing things outside of the shadow root. 

`:host:has(…)` should introspect the shadow root the same way `:host > .child` does. It would seem that`:host:nth-child(…)` should work in this way, as well. 

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


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

Received on Thursday, 8 August 2024 12:47:07 UTC