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

I have been down a rabbit hole today, very interesting exploring what's possible in Safari. It is the kind of flexibility I am familiar with. I wonder how easy it would be for other browsers to follow suit particularly as main reasons for current limitations are performance/efficiency related. e.g. `:host-context` (deprecated), `::slotted()` etc. 

It does make sense. `:host(:has())` -> matches light DOM -> treated as `my-element:has()` -> do whatever you normally can do with light DOM CSS

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


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

Received on Monday, 2 February 2026 16:16:46 UTC