:indeterminate - CSS Selector

:indeterminate

Summary of characteristics of the :indeterminate selector

Quick description
Pseudo-class referring to input fields whose value is indeterminate.
Status
Standard
W3C Module
Selectors
 🡇  
 🡅  
Document status: WD (Working Draft)

Document status: REC (Recommendation)

:indeterminate pseudo-class - Description.

The pseudo-class :indeterminate refers to form elements that are in one of the following states:

  • The radio buttons where none are checked in the group.
  • Progress bars (progress tags) whose value attribute is missing.
  • The checkboxes that have the indeterminate value.

Note that HTML alone cannot set the indeterminate value for checkboxes. You'll need a bit of Javascript code for that:

document.getElementById("...").indeterminate=true;

:indeterminate pseudo-class - Examples of use.

The items below are in an indeterminate state: CSS surrounds them in red. If you select one of the radio buttons or check one of the checkboxes, you'll need to refresh the page to return them to an indeterminate state.





Permis :

:indeterminate pseudo-class - Browser compatibility

The selector :indeterminate is well recognized by the main browsers.

Column 1
Browser support for the :indeterminate pseudo-class, which targets radio buttons, checkboxes, or progress bars when they are in an indeterminate state.
Column 2
Support for the :indeterminate pseudo-class to target radio buttons in an indeterminate state.
Column 3
Support for the :indeterminate pseudo-class to target checkboxes in an indeterminate state.
Column 4
Support for the :indeterminate pseudo-class to target progress bars in an indeterminate state.

Notes:

(1) On Internet Explorer, :indeterminate doesn't target radio buttons.

(2) On Opera mini, the pseudo-class :indeterminate does not target progress bars, no matter their state.

1
:indeterminate
pseudo-class
2
:indeterminate
pseudo-class
on radio buttons
3
:indeterminate
pseudo-class
on checkboxes
4
:indeterminate
pseudo-class
on progress bars
Estimated overall support.
97%
96%
97%
97%

Browsers on computers :

Mobile browsers :

Outdated or marginal browsers :

Internet Explorer

UC Browser pour Androïd

Opéra Mobile

QQ Browser

Baidu Browser

Samsung Internet

Firefox

Opéra

Safari

Safari sur IOS

Edge

Chrome

Androïd Brower

Chrome pour Androïd

Firefox pour Androïd

KaiOS Browser

Opéra mini

:indeterminate pseudo-class - Historic.

  • Selectors Level 3

    This document describes the selectors that already exist in CSS1 and CSS2, and further introduces new selectors for CSS3 and other languages that may need them.

    Regarding :indeterminate Introduction of the selector by pseudo-class :indeterminate in level 3 of the specification.
    WD
    August 03, 1999
    Working Draft.
    CR
    November 13, 2001
    Candidate Recommendation.
    PR
    December 15, 2009
    Proposed for recommendation.
    REC
    September 29, 2011
    Recommendation .
  • Selectors Level 4

    This specification module defines new selectors that can be used in CSS.

    Regarding :indeterminate Pas de modification de la pseudo-classe :indeterminate dans ce niveau de la spécification.
    WD
    September 29, 2011
    Working Draft.
    CR
    PR
    REC

See also...

Many pseudo-classes relate to the state of input areas at a given moment (checked, disabled, active, etc.). Here is the list of these pseudo-classes with links to the corresponding pages.

:autofill
Langue française
⚠
:blank
Langue française
:checked
Langue française
⚠
:closed
Langue française
A pseudo-class that targets an element that can be either opened or closed (such as a select menu), and that is in the closed state.
:default
Langue française
Pseudo-class targeting checkboxes and radio buttons that are checked by default.
:disabled
Langue française
Pseudo-class targeting locked input areas (those that have the disabled attribute).
:enabled
Langue française
:in-range
:indeterminate
Pseudo-class referring to input fields whose value is indeterminate.
:invalid
Pseudo-class targeting input areas containing invalid information.
⚠
:open
Langue française
A pseudo-class that targets elements that can be either opened or closed (such as select), and that are in the open state.
:optional
Langue française
:out-of-range
:placeholder-shown
Langue française
:read-only
Langue française
:read-write
Langue française
:required
Langue française
:user-invalid
Langue française
:user-valid
Langue française
:valid
Pseudo-class designating input fields containing valid information.