CSSPropertyRule

The CSSPropertyRule interface of the CSS Properties and Values API represents a single CSS @property rule.

MDN Reference

Properties

Link copied to clipboard
open external var cssText: String

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

Link copied to clipboard
open external val inherits: Boolean

The read-only inherits property of the CSSPropertyRule interface returns the inherit flag of the custom property registration represented by the @property rule, a boolean describing whether or not the property inherits by default.

Link copied to clipboard
open external val initialValue: String?

The read-only initialValue nullable property of the CSSPropertyRule interface returns the initial value of the custom property registration represented by the @property rule, controlling the property's initial value.

Link copied to clipboard
open external val name: String

The read-only name property of the CSSPropertyRule interface represents the property name, this being the serialization of the name given to the custom property in the @property rule's prelude.

Link copied to clipboard
open external val parentRule: CSSRule?

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

Link copied to clipboard
open external val parentStyleSheet: CSSStyleSheet?

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

Link copied to clipboard
open external val syntax: String

The read-only syntax property of the CSSPropertyRule interface returns the literal syntax of the custom property registration represented by the @property rule, controlling how the property's value is parsed at computed-value time.