// // All members defined since DOM-2 Style. The only differences are: // // 1. removal of commented raises(DOMException) on setting cssText // 2. removal of raises(DOMException) on {set,remove}Property // 3. removal of getPropertyCSSValue() method // [Documentation= "

The {@name} {@type} represents a CSS declaration block, including its underlying state, where this\ underlying state depends upon the source of the {@name} instance.

" ] interface CSSStyleDeclaration { [Documentation= "

The {@name} {@type} must return the result of serializing the\ CSS declaration block declarations.

\

Setting the cssText attribute must run these steps:\

    \
  1. If the CSS declaration block readonly flag is set, throw a\ NoModificationAllowedError exception and terminate these steps.

  2. \
  3. Empty the CSS declaration block declarations.

  4. \
  5. Parse the given value and, if the return value is not null, insert it into the\ CSS declaration block declarations.

  6. \
" ] attribute DOMString cssText; [Documentation= "

The {@name} {@type} must return the number of declarations in the collection of CSS declarations.

" ] readonly attribute unsigned long length; [Documentation= "

The {@name} {@type} must return the property at position index.

" ] DOMString item(unsigned long index); [Documentation= "

The {@name} {@type} must ...

" ] DOMString getPropertyValue(DOMString property); [Documentation= "

The {@name} {@type}, when invoked, if property is an ASCII case-insensitive\ match for a property that has a priority user agents must return the canonical priority of that property as given in the\ syntax definition. Otherwise, the empty string must be returned.

\

E.g. for background-color:lime !IMPORTANT the return value would be 'important'.

" ] DOMString getPropertyPriority(DOMString property); [Documentation= "

The {@name} {@type} must run these steps:

\
    \
  1. If the CSS declaration block readonly flag is set, throw\ an 'NoModificationAllowedError' and terminate these steps.

  2. \
  3. If property is not an ASCII case-insensitive match for a supported property,\ terminate this algorithm.

  4. \
  5. If value is the empty string, invoke removeProperty()\ with property as argument and terminate this algorithm.

  6. \
  7. If the priority argument has been omitted let priority be the empty string.

  8. \
  9. If priority is neither a valid priority nor the empty string terminate this algorithm.

  10. \
  11. \

    If parsing the value returns null terminate this algorithm.\

    value can not include '!important'.

    \
  12. \
  13. Finally, set property to value with priority priority when priority\ is not the empty string. Otherwise set property to value.

  14. \
" ] void setProperty(DOMString property, DOMString value, optional DOMString priority); [Documentation= "

The {@name} {@type} must run these steps:

\
    \
  1. If the CSS declaration block readonly flag is set, throw a\ 'NoModificationAllowedError' and terminate these steps.

  2. \
  3. If property is an ASCII case-insensitive match for a property of a declaration in the\ collection of CSS declarations remove the declaration.

  4. \
" ] DOMString removeProperty(DOMString property); [Documentation= "

The {@name} {@type} must return the CSSrule object the CSSStyleDeclaration is object is associated with\ or null if it is not associated with a CSSrule object.

" ] readonly attribute CSSRule? parentRule; };