Re: [csswg-drafts] Mixing :is() (or equivalent) with pseudo-elements (#9702)

> after matching a compound selector, we filter out all the pseudo-elements that weren't matched explicitly by the <complex-selector-unit> (then apply the combinator and continue on, as normal)

This means `:hover:is(::before)` can match, but :is(:hover):is(::before) can not, since the `:hover` compound within the `:is()` will have filtered away all pseudo-elements it didn't explicitly match. I'm not sure that sounds right?

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


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

Received on Thursday, 18 September 2025 12:00:04 UTC