StylePropertyMap
Experimental: This is an experimental technology
Check the Browser compatibility table carefully before using this in production.
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()
Experimental-
Adds a new CSS declaration to the
StylePropertyMap
with the given property and value. StylePropertyMap.clear()
Experimental-
Removes all declarations in the
StylePropertyMap
. StylePropertyMap.delete()
Experimental-
Removes the CSS declaration with the given property.
StylePropertyMap.set()
Experimental-
Changes the CSS declaration with the given property.
Specifications
Specification |
---|
CSS Typed OM Level 1 # the-stylepropertymap |
Browser compatibility
BCD tables only load in the browser