ZVON > References > DOM2 Reference

CSSStyleDeclaration (interface )


Own properties:
attributes  -  cssText, length, parentRule
methods  -  getPropertyCSSValue, getPropertyPriority, getPropertyValue, item, removeProperty, setProperty

Description:
The CSSStyleDeclaration interface 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 CSSStyleDeclaration interface. 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 CSS2Properties interface.
This interface is also used to provide a read-only access to the computed values of an element. See also the ViewCSS interface.

Note:
The CSS Object Model doesn't provide an access to the specified or actual values of the CSS cascade.