CustomStateSet: size property

Baseline
Widely available

This feature is well established and works across many devices and browser versions. It’s been available across browsers since May 2024.

The size property of the CustomStateSet interface returns the number of values in the CustomStateSet.

Value

An integer indicating how many properties the CustomStateSet has.

Specifications

Specification
HTML
# custom-state-pseudo-class

Browser compatibility