CSSImportRule

The CSSImportRule interface represents an @import at-rule.

MDN Reference

Properties

Link copied to clipboard

The cssText property of the CSSRule interface returns the actual text of a CSSStyleSheet style-rule.

Link copied to clipboard

The read-only href property of the CSSImportRule interface returns the URL specified by the @import at-rule.

Link copied to clipboard

The read-only layerName property of the CSSImportRule interface returns the name of the cascade layer created by the @import at-rule.

Link copied to clipboard

The read-only media property of the CSSImportRule interface returns a MediaList object, containing the value of the media attribute of the associated stylesheet.

Link copied to clipboard

The parentRule property of the CSSRule interface returns the containing rule of the current rule if this exists, or otherwise returns null.

Link copied to clipboard

The parentStyleSheet property of the CSSRule interface returns the StyleSheet object in which the current rule is defined.

Link copied to clipboard

The read-only styleSheet property of the CSSImportRule interface returns the CSS Stylesheet specified by the @import at-rule.

Link copied to clipboard

The read-only supportsText property of the CSSImportRule interface returns the supports condition specified by the @import at-rule.