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 whoseindeterminate
property is set totrue
-
<input type="radio">
elements, when all radio buttons with the samename
value in the form are unchecked -
<progress>
elements in an indeterminate state