CSSStyleValue: parseAll() static method
CSS Typed Object Model API
CSS Typed Object Model API
The parseAll() static method of the CSSStyleValue interface sets all occurrences of a specific CSS property to the specified value and returns an array of CSSStyleValue objects, each containing one of the supplied values.
[!NOTE] This method cannot be called in Worker or Worklet contexts. The rest of the
CSSStyleValueinterface remains available in workers and worklets.
Syntax
CSSStyleValue.parseAll(property, value)
Parameters
property- : A CSS property to set.
value- : A comma-separated string containing one or more values that apply to the provided property.
Return value
An array of CSSStyleValue objects, each containing one of the supplied
values.