CSSRule

@Serializable
data class CSSRule(val styleSheetId: String? = null, val selectorList: CSS.SelectorList, val nestingSelectors: List<String>? = null, val origin: CSS.StyleSheetOrigin, val style: CSS.CSSStyle, val media: List<CSS.CSSMedia>? = null, val containerQueries: List<CSS.CSSContainerQuery>? = null, val supports: List<CSS.CSSSupports>? = null, val layers: List<CSS.CSSLayer>? = null, val scopes: List<CSS.CSSScope>? = null, val ruleTypes: List<CSS.CSSRuleType>? = null, val startingStyles: List<CSS.CSSStartingStyle>? = null)

CSS rule representation.

Constructors

Link copied to clipboard
constructor(styleSheetId: String? = null, selectorList: CSS.SelectorList, nestingSelectors: List<String>? = null, origin: CSS.StyleSheetOrigin, style: CSS.CSSStyle, media: List<CSS.CSSMedia>? = null, containerQueries: List<CSS.CSSContainerQuery>? = null, supports: List<CSS.CSSSupports>? = null, layers: List<CSS.CSSLayer>? = null, scopes: List<CSS.CSSScope>? = null, ruleTypes: List<CSS.CSSRuleType>? = null, startingStyles: List<CSS.CSSStartingStyle>? = null)

Properties

Link copied to clipboard

Container query list array (for rules involving container queries). The array enumerates container queries starting with the innermost one, going outwards.

Link copied to clipboard
val layers: List<CSS.CSSLayer>? = null

Cascade layer array. Contains the layer hierarchy that this rule belongs to starting with the innermost layer and going outwards.

Link copied to clipboard
val media: List<CSS.CSSMedia>? = null

Media list array (for rules involving media queries). The array enumerates media queries starting with the innermost one, going outwards.

Link copied to clipboard

Array of selectors from ancestor style rules, sorted by distance from the current rule.

Link copied to clipboard

Parent stylesheet's origin.

Link copied to clipboard

The array keeps the types of ancestor CSSRules from the innermost going outwards.

Link copied to clipboard
val scopes: List<CSS.CSSScope>? = null
Link copied to clipboard

Rule selector data.

Link copied to clipboard
Link copied to clipboard

Associated style declaration.

Link copied to clipboard
val styleSheetId: String? = null

The css style sheet identifier (absent for user agent stylesheet and user-specified stylesheet rules) this rule came from.

Link copied to clipboard