CSSStyle

@Serializable
data class CSSStyle(val styleSheetId: StyleSheetId? = null, val cssProperties: List<CSSProperty>, val shorthandEntries: List<ShorthandEntry>, val cssText: String? = null, val range: SourceRange? = null)(source)

CSS style representation.

Official doc

Constructors

Link copied to clipboard
constructor(styleSheetId: StyleSheetId? = null, cssProperties: List<CSSProperty>, shorthandEntries: List<ShorthandEntry>, cssText: String? = null, range: SourceRange? = null)

Properties

Link copied to clipboard

CSS properties in the style.

Link copied to clipboard
val cssText: String? = null

Style declaration text (if available).

Link copied to clipboard
val range: SourceRange? = null

Style declaration range in the enclosing stylesheet (if available).

Link copied to clipboard

Computed values for all shorthands found in the style.

Link copied to clipboard

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