CSSStyleDeclarationinterface represents a single CSS declaration block. This interface may be used to determine the style properties currently set in a block or to set style properties explicitly within the block.
While an implementation may not recognize all CSS properties within a CSS declaration block, it is expected to provide access to all specified properties in the style sheet through the
CSSStyleDeclarationinterface. Furthermore, implementations that support a specific level of CSS should correctly handle CSS shorthand properties for that level. For a further discussion of shorthand properties, see the
This interface is also used to provide a read-only access to the computed values of an element. See also the
ViewCSSinterface. The CSS Object Model doesn't provide an access to the specified or actual values of the CSS cascade.
See also the Document Object Model (DOM) Level 2 Style Specification. @since DOM Level 2