CustomClassList
Provides functionality for manipulating custom CSS classes. Learn more.
Guides
Additional information about this section
Endpoints
The endpoints exposed by this API
Adds custom CSS classes to an element's class list.
Indicates whether the element's class list contains a specified custom CSS class.
Removes custom CSS classes from an element's class list.
Replaces a custom CSS class of an element with a different custom CSS class.
Toggles an element's custom CSS class.
Gets an array of strings listing an element's custom CSS classes.