StylePropertyMap
Limited availability
This feature is not Baseline because it does not work in some of the most widely-used browsers.
The StylePropertyMap interface of the CSS Typed Object Model API provides a representation of a CSS declaration block that is an alternative to CSSStyleDeclaration.
Instance properties
Inherits properties from its parent, StylePropertyMapReadOnly.
Instance methods
Inherits methods from its parent, StylePropertyMapReadOnly.
StylePropertyMap.append()-
Adds a new CSS declaration to the
StylePropertyMapwith the given property and value. StylePropertyMap.clear()-
Removes all declarations in the
StylePropertyMap. StylePropertyMap.delete()-
Removes the CSS declaration with the given property.
StylePropertyMap.set()-
Changes the CSS declaration with the given property.
Specifications
| Specification |
|---|
| CSS Typed OM Level 1 # the-stylepropertymap |
Browser compatibility
| desktop | mobile | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
StylePropertyMap
|
|
|
|
|
|
|
|
|
|
|
|
|
append
|
|
|
|
|
|
|
|
|
|
|
|
|
clear
|
|
|
|
|
|
|
|
|
|
|
|
|
delete
|
|
|
|
|
|
|
|
|
|
|
|
|
set
|
|
|
|
|
|
|
|
|
|
|
|
|
Legend
Tip: you can click/tap on a cell for more information.
- Full support
- Full support
- No support
- No support
- See implementation notes.