Represents an import 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 | ||
---|---|---|---|---|---|---|---|---|
CSSImportRule Constructor() : CSSImportRule
Represents an import rule in a CSS style sheet.
|
Show Details | no | 1.0+ | no | 9.0+ | 1.0+ | ||
CSSImportRule() : CSSImportRuleRepresents an import 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 |
---|---|---|---|---|---|---|
href
: String
URL of the imported CSS style sheet.
|
Show Details | 5.0+ | 1.0+ | no | 9.0+ | 1.0+ |
|
||||||
media
: MediaList
Media types that the imported CSS style sheet applies to.
|
Show Details | no | 1.0+ | no | 9.0+ | 1.0+ |
|
||||||
styleSheet
: CSSStyleSheet
CSSStyleSheet object that represents the imported CSS style sheet.
|
Show Details | no | 1.0+ | no | 9.0+ | 1.0+ |
|
Availability
HTML DOM Level 2|W3C