CSSStyleValue.parseAll()

Experimental: This is an experimental technology
Check the Browser compatibility table carefully before using this in production.

The parseAll() 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.

Syntax

CSSStyleValue.parseAll(property, value)

Parameters

property

A CSS property to set.

cssText

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.

Specifications

Specification
CSS Typed OM Level 2 (CSS Typed OM 2)
# dom-cssstylevalue-parseall

Browser compatibility

BCD tables only load in the browser

See also