CSSRule

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

Constants

The nsIDOMCSSRule interface is a datatype for a CSS style rule in the Document Object Model.

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

short UNKNOWN_RULE = 0
short STYLE_RULE = 1
short CHARSET_RULE = 2
short IMPORT_RULE = 3
short MEDIA_RULE = 4
short FONT_FACE_RULE = 5
short PAGE_RULE = 6

Properties

String cssText

readonly CSSRule parentRule

readonly CSSStyleSheet parentStyleSheet

readonly short type

Reference documentation is generated from Mozilla's source.

Add a note User Contributed Notes
February 3, 2005, 11:08 pm surkov at dc dot baikal dot ru
Defined Constants

CHARSET_RULE
The rule is a CSSCharsetRule.

FONT_FACE_RULE
The rule is a CSSFontFaceRule.

IMPORT_RULE
The rule is a CSSImportRule.

MEDIA_RULE
The rule is a CSSMediaRule.

PAGE_RULE
The rule is a CSSPageRule.

STYLE_RULE
The rule is a CSSStyleRule.

UNKNOWN_RULE
The rule is a CSSUnknownRule.

Copyright © 1999 - 2005 XULPlanet.com