CustomStateSet: clear() method

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.

We'd love to hear more about your role and the company you work for
Please help us by answering a few questions.

The clear() method of the CustomStateSet interface removes all elements from the CustomStateSet object.

Syntax

js
clear()

Parameters

None.

Return value

Undefined.

Specifications

Specification
HTML
# custom-state-pseudo-class

Browser compatibility