CustomStateSet: delete() method
Baseline 2024Newly 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 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 |
Browser compatibility
Report problems with this compatibility data on GitHubdesktop | mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
delete |
Legend
Tip: you can click/tap on a cell for more information.
- Full support
- Full support
The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.