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

The CSS Working Group just discussed ``[selectors] Shouldn't there be a pseudo selector for `:unchecked` inputs?``, and agreed to the following:

* `RESOLVED: Define :unchecked for elements for which :checked applies, exclusive with :indeterminate`

<details><summary>The full IRC log of that discussion</summary>
&lt;emilio> fantasai: proposal to have :unchecked, parallel to :checked and :indeterminate<br>
&lt;emilio> ... parallel to other pseudos like :enabled/:disabled<br>
&lt;emilio> ... apparently this one is the only one that doesn't have it<br>
&lt;emilio> ... proposal is to add it<br>
&lt;emilio> Rossen9: so when does this match?<br>
&lt;emilio> fantasai: when it can be checked but isn't<br>
&lt;emilio> q+<br>
&lt;Rossen9> ack emilio<br>
&lt;fantasai> fantasai: e.g. div:not(:checked) matches but div:unchecked doesn't<br>
&lt;fantasai> emilio: is it exclusive with :indeterminate?<br>
&lt;fantasai> fantasai: yes<br>
&lt;emilio> fantasai: because indeterminate means it's not checked or unchecked<br>
&lt;emilio> dbaron: checked can match radio/input/option<br>
&lt;emilio> ... indeterminate can match radio/checkbox/progress<br>
&lt;kizu> q+<br>
&lt;emilio> ... I assume this would match only the things checked might match?<br>
&lt;emilio> fantasai: yes<br>
&lt;dbaron> https://html.spec.whatwg.org/multipage/semantics-other.html#selector-checked<br>
&lt;Rossen9> ack kizu<br>
&lt;emilio> kizu: in scroll-marker :checked was mentioned as something we'd match<br>
&lt;emilio> ... should we have :unchecked too?<br>
&lt;emilio> fantasai: I think we shouldn't have :checked for that<br>
&lt;emilio> flackr: if we use :checked it probably should<br>
&lt;kbabbitt> :unchecked sounds good to me<br>
&lt;emilio> PROPOSED: Define :unchecked for elements for which :checked applies, exclusive with :indeterminate<br>
&lt;emilio> RESOLVED: Define :unchecked for elements for which :checked applies, exclusive with :indeterminate<br>
</details>


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


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

Received on Saturday, 28 September 2024 00:50:12 UTC