CustomStateSet: size property

Baseline 2024
Newly available

Since May 2024, this feature works across the latest devices and browser versions. This feature might not work in older devices or browsers.

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

desktopmobile
Chrome
Edge
Firefox
Opera
Safari
Chrome Android
Firefox for Android
Opera Android
Safari on iOS
Samsung Internet
WebView Android
WebView on iOS
size