DOM.CSSStyleDeclaration


The CSSStyleDeclaration, introduced in DOM Level 2, is an interface for accessing and manipulating style properties of elements.

attributes:

  • cssText: String - raises(DOMException) on setting
  • length : unsigned long (readonly)
  • parentRule: CSSRule (readonly)

methods:

  • item(in unsigned long index) : String
  • getPropertyValue(in DOMString propertyName) : String
  • getPropertyCSSValue(in DOMString propertyName) : CSSValue
  • removeProperty(in DOMString propertyName) : String - raises(DOMException);
  • getPropertyPriority(in DOMString propertyName) : String
  • setProperty(in DOMString propertyName, in DOMString value, in DOMString priority) - raises(DOMException);

See also