Packagedom.style.css
Classpublic class CSSImportRule
InheritanceCSSImportRule Inheritance CSSRule Inheritance Object

Introduced in: DOM 2 Core 

The CSSImportRule interface represents a @import rule within a CSS style sheet. The @import rule is used to import style rules from other style sheets.

See also

MSDN - @import Rule
MDC - cssRule: CSSImportRule
W3C - DOM Level 2 Style: CSSImportRule


Public Properties
 PropertyDefined By
 InheritedDOM 2 Style cssText : DOMString
[read-only] The parsable textual representation of the rule.
CSSRule
  DOM 2 Style href : DOMString
[read-only] The location of the style sheet to be imported.
CSSImportRule
  DOM 2 Style media : MediaList
[read-only] A list of media types for which this style sheet may be used.
CSSImportRule
 InheritedDOM 2 Style parentRule : CSSRule
[read-only] If this rule is contained inside another rule (e.g.
CSSRule
 InheritedDOM 2 Style parentStyleSheet : CSSStyleSheet
[read-only] The style sheet that contains this rule.
CSSRule
  DOM 2 Style styleSheet : CSSStyleSheet
[read-only] The style sheet referred to by this rule, if it has been loaded.
CSSImportRule
 InheritedDOM 2 Style type : Number
[read-only] The type of the rule, as defined above.
CSSRule
Public Constants
 ConstantDefined By
 InheritedDOM 2 Style CHARSET_RULE : Number = 2
The rule is a CSSCharsetRule.
CSSRule
 InheritedDOM 2 Style FONT_FACE_RULE : Number = 5
The rule is a CSSFontFaceRule.
CSSRule
 InheritedDOM 2 Style IMPORT_RULE : Number = 3
The rule is a CSSImportRule.
CSSRule
 InheritedDOM 2 Style MEDIA_RULE : Number = 4
The rule is a CSSMediaRule.
CSSRule
 InheritedDOM 2 Style PAGE_RULE : Number = 6
The rule is a CSSPageRule.
CSSRule
 InheritedDOM 2 Style STYLE_RULE : Number = 1
The rule is a CSSStyleRule.
CSSRule
 InheritedDOM 2 Style UNKNOWN_RULE : Number = 0
The rule is a CSSUnknownRule.
CSSRule
Property Detail
DOM 2 Style hrefproperty
href:DOMString  [read-only]

Introduced in: DOM 2 Core 

The location of the style sheet to be imported. The attribute will not contain the "url(...)" specifier around the URI.


Implementation
    public function get href():DOMString

See also

DOM 2 Style mediaproperty 
media:MediaList  [read-only]

Introduced in: DOM 2 Core 

A list of media types for which this style sheet may be used.


Implementation
    public function get media():MediaList

See also

DOM 2 Style styleSheetproperty 
styleSheet:CSSStyleSheet  [read-only]

Introduced in: DOM 2 Core 

The style sheet referred to by this rule, if it has been loaded. The value of this attribute is null if the style sheet has not yet been loaded or if it will not be loaded.


Implementation
    public function get styleSheet():CSSStyleSheet

See also