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 The resolved URL will be the href attribute of the associated stylesheet.

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 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 the current rule is defined.

Link copied to clipboard

The read-only styleSheet property of the in the form of a CSSStyleSheet object.

Link copied to clipboard

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