CSS :indeterminate Selector
Example
input:indeterminate {
box-shadow: 0 0 2px 2px red;
}
Meaning
The :indeterminate selector represents any form element whose state is indeterminate, such as checkboxes which have their HTML indeterminate attribute set to true, radio buttons which are members of a group in which all radio buttons are unchecked, and indeterminate <progress> elements.
Elements targeted by this selector are:
- <input type="checkbox"> elements whose indeterminate property is set to true by JavaScript
- <input type="radio"> elements, when all radio buttons with the same name value in the form are unchecked
- <progress> elements in an indeterminate state
Version: CSS3
Standard Syntax
:indeterminate {
css declarations;
}
Browser Support
The numbers in the table specify the first browser version that fully supports the property.