[csswg-drafts] [selectors] Time dimensional pseudo-classes that get a selector list as arguments are weird. (#9748)

emilio has just created a new issue for https://github.com/w3c/csswg-drafts:

== [selectors] Time dimensional pseudo-classes that get a selector list as arguments are weird. ==
https://drafts.csswg.org/selectors/#time-pseudos describes syntax like `:current(<compound-selector-list>)`.

I might be missing something, but is there any reason why this can't be a regular (argument-less) pseudo-class? That is, is there any reason why `:current(foo, bar)` would be different from `:is(foo, bar):current`?

If not, is there any reason for this extra complexity? It seems that the `:current` pseudo-class can be expressed in terms of a chain, much like `:hover` / `:active` or what not.

cc @tabatkins who wrote most of the spec text I believe.


Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/9748 using your GitHub account


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

Received on Friday, 22 December 2023 17:56:58 UTC