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: CSS.SourceRange? = null, val longhandProperties: List<CSS.CSSProperty>? = null)

CSS property declaration data.

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: CSS.SourceRange? = null, longhandProperties: List<CSS.CSSProperty>? = null)

Properties

Link copied to clipboard
val disabled: Boolean? = null

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

Link copied to clipboard
val implicit: Boolean? = null

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

Link copied to clipboard
val important: Boolean? = null

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
val parsedOk: Boolean? = null

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

Link copied to clipboard
val range: CSS.SourceRange? = null

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

Link copied to clipboard
val text: String? = null

The full property text as specified in the style.

Link copied to clipboard

The property value.