Re: [csswg-drafts] [selectors-4] Define a number of new pseudo-classes for matching the state of media elements. (#6219)

Overall looks good.

Only comment left is that maybe we also want a generic `:media` pseudo-class that matches elements capable of matching any of these pseudos? I suggest this because of the annoyingness of things like `:not(:muted)` causing overselection of everything else on the page; instead, you could write `:media:not(:muted)` and get what you meant.

(I could see us instead recasting the whole thing into a `:media()` that accepts keywords for all the states, but we'd have to add negation to the states as well, and we already have `:playing` and `:paused`, so meh.)

-- 
GitHub Notification of comment by tabatkins
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/pull/6219#issuecomment-824425726 using your GitHub account


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

Received on Wednesday, 21 April 2021 23:16:47 UTC