The :indeterminate CSS pseudo-class represents any form element whose state is indeterminate, such as checkboxes that have been set to an indeterminate state with JavaScript, radio buttons which are members of a group in which all radio buttons are unchecked, and <progress> elements with no value attribute.
/* Selects any <input> whose state is indeterminate */
input:indeterminate {
background: lime;
}
Elements targeted by this selector are:
-
<input type="checkbox">elements with theindeterminateproperty set totrue. -
<input type="radio">elements with the samenamevalue and none of themchecked. -
<progress>elements with novalue, placing them in an indeterminate state.