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.
Inherits properties from its parent, StylePropertyMapReadOnly.
Inherits methods from its parent, StylePropertyMapReadOnly.
StylePropertyMap.append()Adds a new CSS declaration to the StylePropertyMap with 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.
| Specification |
|---|
| CSS Typed OM Level 1> # the-stylepropertymap> |
| Desktop | Mobile | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Chrome | Edge | Firefox | Opera | Safari | Chrome Android | Firefox for Android | Opera Android | Safari on IOS | Samsung Internet | WebView Android | WebView on iOS | |
StylePropertyMap |
66 | 79 | No | 53 | 16.4 | 66 | No | 47 | 16.4 | 9.0 | 66 | 16.4 |
append |
66 | 79 | No | 53 | 16.4 | 66 | No | 47 | 16.4 | 9.0 | 66 | 16.4 |
clear |
66 | 79 | No | 53 | 16.4 | 66 | No | 47 | 16.4 | 9.0 | 66 | 16.4 |
delete |
66 | 79 | No | 53 | 16.4 | 66 | No | 47 | 16.4 | 9.0 | 66 | 16.4 |
set |
66 | 79 | No | 53 | 16.4 | 66 | No | 47 | 16.4 | 9.0 | 66 | 16.4 |
© 2005–2025 MDN contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/StylePropertyMap