CustomStateSet: delete() method
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 delete() method of the CustomStateSet interface deletes a single value from the CustomStateSet.
Syntax
js
delete(value)
Parameters
value-
value to remove from the
CustomStateSet.
Return value
Returns true if value was in the CustomStateSet; otherwise false.
Specifications
| Specification |
|---|
| HTML> # custom-state-pseudo-class> |