Re: [csswg-drafts] [css-scoping-1] Clarify exactly what :host(<sel>) can use as argument (#7953)

I'm agree with @justinfagnani here that `:has-slotted` (if it applied directly to a `<slot>` element) can't really replace the current implementation of `:host(:has(...))` that is found in Safari. In the case that it would be the required path, there would really need to be a path to internal `:has()` on `:host()`, or "host has something in its shadow DOM so style accordingly". I've thought that`:host(:has())` and `:host:has()` should be different to cover this, but it seems like a much longer path than admitting that CSS and browsers are better, faster, and smarter than they were in 2011 and allowing for complex selectors (or at least pseudos like `:has()`, `:is()`, .etc) in `:host(...)`.

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


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

Received on Sunday, 1 January 2023 23:11:52 UTC