Defines a CSS rule in a CSS style sheet.
Platform Support
| IE | Mozilla | Netscape | Opera | Safari | 6.0+ | 1.0+ | no | 9.0+ | 1.0+ |
|---|
Constructors
| Constructor | Action | IE | Mozilla | Netscape | Opera | Safari | ||
|---|---|---|---|---|---|---|---|---|
|
CSSRule Constructor() : CSSRule
Defines a CSS rule in a CSS style sheet.
|
Show Details | 6.0+ | 1.0+ | no | 9.0+ | 1.0+ | ||
CSSRule() : CSSRuleDefines a CSS rule in a CSS style sheet. Returns
|
||||||||
Properties
| Property | Action | IE | Mozilla | Netscape | Opera | Safari |
|---|---|---|---|---|---|---|
|
cssText
: String
Text for the current CSS rule.
|
Show Details | 6.0+ | 1.0+ | no | 9.0+ | 1.0+ |
|
||||||
|
parentRule
: CSSRule
Parent rule for the current CSS rule.
|
Show Details | 6.0+ | 1.0+ | no | 9.0+ | 1.0+ |
|
||||||
|
parentStyleSheet
: CSSStyleSheet
CSS style sheet that contains the rule.
|
Show Details | no | 1.0+ | no | 9.0+ | 1.0+ |
|
||||||
|
type
: Number
Type of CSS rule.
|
Show Details | no | 1.0+ | no | 9.0+ | 1.0+ |
|
||||||
References
Availability
HTML DOM Level 2|W3C
