WARNING: Most of this content (with the exception of the Mozilla 1.9 XPCOM reference) is very old, and can be expected to be out of date and possibly obsolete. For better XUL documentation, please visit the XUL hub at the Mozilla Developer Center.

CSSStyleSheet

This object is available to unprivileged JavaScript. It implements the following interfaces:

Properties

readonly CSSRuleList cssRules

boolean disabled

readonly String href

readonly MediaList media

readonly Node ownerNode

readonly CSSRule ownerRule

The nsIDOMCSSStyleSheet interface is a datatype for a CSS style sheet in the Document Object Model.

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

readonly StyleSheet parentStyleSheet

readonly String title

readonly String type

The nsIDOMStyleSheet interface is a datatype for a style sheet in the Document Object Model.

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


Methods

void deleteRule ( int index ) int insertRule ( String rule , int index )

void deleteRule ( int index )

Arguments:
index

int insertRule ( String rule , int index )

Arguments:
rule
index

Reference documentation is generated from Mozilla's source.

Copyright © 1999-2006 XULPlanet.com