-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
indeterminate <input type=checkbox> definition confusing #5079
Comments
In Firefox I observe four states with As for the text, I think obscuring the selection matches how it's exposed to ARIA. Doesn't seem to care only about visual appearance to me. |
I guess you're right that it's not saying it's visual-only. I think it can be improved, though. For context, I wanted to mention that HTML can represent an I think to resolve this issue we could say that
That there is an interop difference between Firefox and Safari with the pseudo-classes is interesting. Do you have a demo? |
<style>input + div { border:1em solid blue } input:checked + div { border-color:yellow }</style>
<input type=checkbox checked><div></div>
<input type=checkbox checked><div></div>
<script>document.querySelector("input").indeterminate = true</script> |
not sure if this is the right thread to resurrect for this, but i'm wondering if there's any mileage in allowing indeterminate to be set using an actual attribute in HTML? i.e. being able to (statically) set an checkbox to be |
@patrickhlauke please file a new issue on that? I'd be supportive of adding that, but it might require some compatibility analysis. And maybe we can track someone down from the old Internet Explorer team who knows why it was done this way. |
https://html.spec.whatwg.org/multipage/input.html#checkbox-state-(type=checkbox)
This text has been unchanged since its introduction in c1880df.
The
indeterminate
state is mapped toaria-checked="mixed"
in html-aam, so it's not just about visual rendering.https://w3c.github.io/html-aam/#el-input-checkbox
It also changes when the
:indeterminate
pseudo-class matches.I get that the
checked
state is a boolean and that it is left as-is whenindeterminate
is set to true, but I still find the downplay ofindeterminate
confusing and I don't understand what it is trying to accomplish. If it means that it doesn't change what is submitted, then we should say so directly.Can indeterminate be treated as a first-class concept?
The text was updated successfully, but these errors were encountered: