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

@emilio this is a good callout. I wonder if we could restrict what selectors are allowed somehow to avoid the larger perf costs and still address the simpler case that authors are looking to solve.

i.e. `:has()` takes a complex selector unless nested in `:host()` with some scoped definition of what is allowed in `:has()` in this case. Although, perhaps there isn't precedence for this sort of special casing?

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


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

Received on Wednesday, 9 April 2025 18:59:08 UTC