CustomStateSet: size property

Experimental: This is an experimental technology
Check the Browser compatibility table carefully before using this in production.

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 Standard
# custom-state-pseudo-class

Browser compatibility

BCD tables only load in the browser