The :indeterminate CSS pseudo-class represents any form element whose state is indeterminate.

/* Selects any <input> whose state is indeterminate */
input:indeterminate {
  background: lime;

Elements targeted by this selector are:




Checkbox & radio button

This example applies special styles to the labels associated with indeterminate form fields.


  <input type="checkbox" id="checkbox">
  <label for="checkbox">This label starts out lime.</label>
  <input type="radio" id="radio">
  <label for="radio">This label starts out lime.</label>


input:indeterminate + label {
  background: lime;


var inputs = document.getElementsByTagName("input");

for (var i = 0; i < inputs.length; i++) {
  inputs[i].indeterminate = true;

Progress bar




progress {
  margin: 4px;

progress:indeterminate {
  opacity: 0.5;
  background-color: lightgray;
  box-shadow: 0 0 2px 1px red;



Specification Status Comment
HTML Living Standard
The definition of ':indeterminate' in that specification.
Living Standard No change.
The definition of ':indeterminate' in that specification.
Recommendation Defines the semantics of HTML and constraint validation.
Selectors Level 4
The definition of ':indeterminate' in that specification.
Working Draft No change.
CSS Basic User Interface Module Level 3
The definition of ':indeterminate' in that specification.
Recommendation Defines the pseudo-class, but not the associated semantics.

Browser compatibility

FeatureChromeEdgeFirefoxInternet ExplorerOperaSafari
Basic support Yes Yes Yes Yes Yes Yes
type="checkbox" ? Yes3.6910.63
type="radio"39 No151 No ? No2
<progress>6 Yes610 ? Yes
FeatureAndroid webviewChrome for AndroidEdge mobileFirefox for AndroidOpera AndroidiOS SafariSamsung Internet
Basic support ? ? Yes Yes ? ? ?
type="checkbox" ? ? Yes4 ? ? ?
type="radio"39 ? No151 ? No2 ?
<progress> ? ? Yes6 ? ? ?

1. See Edge bug 7124038.

2. See WebKit bug 156270.

Document Tags and Contributors

Last updated by: SphinxKnight,