Re: [csswg-drafts] [selectors] Shouldn't there be a pseudo selector for `:unchecked` inputs? (#10746)

On one hand, we do have both `:enabled` and `:disabled`, `:valid` and `:invalid`. A crucial point is that these are not equivalent to the `:not()` versions of the positive pseudo-class. `:disabled` is not simply `:not(:enabled)` as the latter would also match elements that cannot be activated. Similarly, `:invalid` is not simply `:not(:valid)`.
I think `:unchecked` could work similarly, and only target checkboxes and radios.

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


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

Received on Friday, 20 September 2024 17:16:06 UTC