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.
CSSMediaRule
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
readonly CSSRuleList cssRules
String cssText
readonly MediaList media
readonly CSSRule parentRule
readonly CSSStyleSheet parentStyleSheet
readonly short type
Methods
void deleteRule ( int index )
int insertRule ( String rule , int index )
Reference documentation is generated from Mozilla's source.
