parse

fun parse(property: String, cssText: String): CSSStyleValue(source)

The parse() static method of the CSSStyleValue interface sets a specific CSS property to the specified values and returns the first value as a CSSStyleValue object.

MDN Reference