CSS style rule in a CSS style sheet.
Platform Support
| IE | Mozilla | Netscape | Opera | Safari | no | 1.0+ | no | 9.0+ | 1.0+ |
|---|
Constructors
| Constructor | Action | IE | Mozilla | Netscape | Opera | Safari | ||
|---|---|---|---|---|---|---|---|---|
|
CSSStyleRule Constructor() : CSSStyleRule
CSS style rule in a CSS style sheet.
|
Show Details | no | 1.0+ | no | 9.0+ | 1.0+ | ||
CSSStyleRule() : CSSStyleRuleCSS style rule in a CSS style sheet. Returns
|
||||||||
Inherited 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+ |
|
||||||
Properties
| Property | Action | IE | Mozilla | Netscape | Opera | Safari |
|---|---|---|---|---|---|---|
|
selectorText
: String
Specifies the name of the CSS selector that the rule applies to.
|
Show Details | 5.0+ | 1.0+ | no | 9.0+ | 1.0+ |
|
||||||
|
style
: CSSStyleDeclaration
Style values for the CSS selector.
|
Show Details | no | 1.0+ | no | 9.0+ | 1.0+ |
|
||||||
References
Availability
HTML DOM Level 2|W3C
