CSSStyle

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

CSS style representation.

Constructors

Link copied to clipboard
constructor(styleSheetId: String? = null, cssProperties: List<CSS.CSSProperty>, shorthandEntries: List<CSS.ShorthandEntry>, cssText: String? = null, range: CSS.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: CSS.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
val styleSheetId: String? = null

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