Firefox Tomorrow

web api interface

StylePropertyMap

View on MDN ↗

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.

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

Specifications

SpecificationsStandards references are available on the canonical MDN page.

Browser compatibility

Browser compatibilityCompatibility data is available on the canonical MDN page.