Back to Content

StylePropertyMap

files/en-us/web/api/stylepropertymap/index.md

latest1.0 KB
Original Source

{{APIRef("CSS Typed Object Model API")}}

The StylePropertyMap interface of the CSS Typed Object Model API provides a representation of a CSS declaration block that is an alternative to {{DOMxRef("CSSStyleDeclaration")}}.

{{InheritanceDiagram}}

Instance properties

Inherits properties from its parent, {{DOMxRef("StylePropertyMapReadOnly")}}.

Instance methods

Inherits methods from its parent, {{DOMxRef("StylePropertyMapReadOnly")}}.

  • {{DOMxRef("StylePropertyMap.append()")}}
    • : Adds a new CSS declaration to the StylePropertyMap with the given property and value.
  • {{DOMxRef("StylePropertyMap.clear()")}}
    • : Removes all declarations in the StylePropertyMap.
  • {{DOMxRef("StylePropertyMap.delete()")}}
    • : Removes the CSS declaration with the given property.
  • {{DOMxRef("StylePropertyMap.set()")}}
    • : Changes the CSS declaration with the given property.

Specifications

{{Specifications}}

Browser compatibility

{{Compat}}