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

Perhaps I just haven’t used `:is()` enough yet to see it. Your example makes little sense to me, because the selector matches the same as `.foo:is(*)`, except with higher specificity; that and forgiving list parsing then is the only difference from plain old `.foo`.

My imagination seems too limited to find a real use for `…:is(*, …)`.
<!--
If it really is just about specificity, a dedicated pseudo-class with custom selector-like parameter syntax, wherein the asterisk was a real and contributing wildcard, would have been simpler: `:specificity(*|*#*>*.*::*:*(*))` &rarr; (1, 2, 3).
-->

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


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

Received on Thursday, 4 September 2025 20:32:09 UTC