Re: [csswg-drafts] [selectors] Should :not(foo) match the host of the shadow tree? (#10179)

I think there might be a third option which even though it's a bit weird would be an improvement on (1) if we go that route, which is conditioning matching it on the selector having a :host selector in some way (which was my read of the spec). Depending on how we define that, it could make `:not(:not(:host)):not(.foo)` not match, but it'd also make `:not(.foo)` not match, which is IMO the preferred behavior (both for performance and for matching author expectations).

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


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

Received on Tuesday, 9 April 2024 12:25:56 UTC