nsIDOMCSSStyleDeclaration

IID:a6cf90be-15b3-11d2-932e-00805f8add32
Inherits From:nsISupports
Status:FROZEN

The nsIDOMCSSStyleDeclaration interface is a datatype for a CSS style declaration in the Document Object Model.

For more information on this interface please see http://www.w3.org/TR/DOM-Level-2-Style

This interface is implemented by the following components:


Properties

DOMString cssText

The nsIDOMCSSStyleDeclaration interface is a datatype for a CSS style declaration in the Document Object Model.

For more information on this interface please see http://www.w3.org/TR/DOM-Level-2-Style

readonly PRUint32 length

readonly nsIDOMCSSRule parentRule


Methods

nsIDOMCSSValue getPropertyCSSValue ( DOMString propertyName ) DOMString getPropertyPriority ( DOMString propertyName ) DOMString getPropertyValue ( DOMString propertyName ) DOMString item ( PRUint32 index ) DOMString removeProperty ( DOMString propertyName ) void setProperty ( DOMString propertyName , DOMString value , DOMString priority )

nsIDOMCSSValue getPropertyCSSValue ( DOMString propertyName )

Arguments:
propertyName

DOMString getPropertyPriority ( DOMString propertyName )

Arguments:
propertyName

DOMString getPropertyValue ( DOMString propertyName )

Arguments:
propertyName

DOMString item ( PRUint32 index )

Arguments:
index

DOMString removeProperty ( DOMString propertyName )

Arguments:
propertyName

void setProperty ( DOMString propertyName , DOMString value , DOMString priority )

Arguments:
propertyName
value
priority

References

This interface is the type of the following properties:

nsIDOMCSSFontFaceRule.style, nsIDOMCSSPageRule.style, nsIDOMCSSStyleRule.style, nsIDOMElementCSSInlineStyle.style, nsIDOMXULElement.style

This interface is returned from the following methods:

nsIDOMDocumentCSS.getOverrideStyle, nsIDOMViewCSS.getComputedStyle

Reference documentation is generated from Mozilla's source.

Add a note User Contributed Notes
No comments available

Copyright © 1999 - 2005 XULPlanet.com