CSSImportRule

The CSSImportRule interface represents an @import at-rule.

MDN Reference

Properties

Link copied to clipboard
external var cssText: String

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

Link copied to clipboard
external val href: String

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

Link copied to clipboard
external val layerName: String?

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
external val media: MediaList

The read-only media property of the CSSImportRule interface returns a MediaList object representing the media query list of the @import rule.

Link copied to clipboard
external val parentRule: CSSRule?

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
external val styleSheet: CSSStyleSheet?

The read-only styleSheet property of the CSSImportRule interface returns the CSS Stylesheet specified by the @import at-rule. This will be in the form of a CSSStyleSheet object.

Link copied to clipboard
external val supportsText: String?

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