CSSProperty

@Serializable
data class CSSProperty(val name: String, val value: String, val important: Boolean? = null, val implicit: Boolean? = null, val text: String? = null, val parsedOk: Boolean? = null, val disabled: Boolean? = null, val range: SourceRange? = null, val longhandProperties: List<CSSProperty>? = null)

CSS property declaration data.

Official doc

Constructors

Link copied to clipboard
constructor(name: String, value: String, important: Boolean? = null, implicit: Boolean? = null, text: String? = null, parsedOk: Boolean? = null, disabled: Boolean? = null, range: SourceRange? = null, longhandProperties: List<CSSProperty>? = null)

Properties

Link copied to clipboard

Whether the property is disabled by the user (present for source-based properties only).

Link copied to clipboard

Whether the property is implicit (implies false if absent).

Link copied to clipboard

Whether the property has "!important" annotation (implies false if absent).

Link copied to clipboard

Parsed longhand components of this property if it is a shorthand. This field will be empty if the given property is not a shorthand.

Link copied to clipboard

The property name.

Link copied to clipboard

Whether the property is understood by the browser (implies true if absent).

Link copied to clipboard

The entire property range in the enclosing style declaration (if available).

Link copied to clipboard
val text: String?

The full property text as specified in the style.

Link copied to clipboard

The property value.