// // 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:\
If the CSS declaration block readonly flag is set, throw a\
NoModificationAllowedError exception and terminate these steps.
Empty the CSS declaration block declarations.
Parse the given value and, if the return value is not null, insert it into the\ CSS declaration block declarations.
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'.
The {@name} {@type} must run these steps:
\If the CSS declaration block readonly flag is set, throw\
an 'NoModificationAllowedError' and terminate these steps.
If property is not an ASCII case-insensitive match for a supported property,\ terminate this algorithm.
If value is the empty string, invoke removeProperty()\
with property as argument and terminate this algorithm.
If the priority argument has been omitted let priority be the empty string.
If priority is neither a valid priority nor the empty string terminate this algorithm.
If parsing the value returns null terminate this algorithm.\
value can not include '!important'.
Finally, set property to value with priority priority when priority\ is not the empty string. Otherwise set property to value.
The {@name} {@type} must run these steps:
\If the CSS declaration block readonly flag is set, throw a\
'NoModificationAllowedError' and terminate these steps.
If property is an ASCII case-insensitive match for a property of a declaration in the\ collection of CSS declarations remove the declaration.
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.