Skip to main content

CSSStyleValue-1

CSSStyleValue: {
(): CSSStyleValue;
prototype: CSSStyleValue;
parse: CSSStyleValue;
parseAll: CSSStyleValue[];
};

Type Declaration

Returns

CSSStyleValue

prototype

prototype: CSSStyleValue;

parse()

parse(property, cssText): CSSStyleValue;

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

Parameters

ParameterType
propertystring
cssTextstring

Returns

CSSStyleValue

parseAll()

parseAll(property, cssText): CSSStyleValue[];

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.

MDN Reference

Parameters

ParameterType
propertystring
cssTextstring

Returns

CSSStyleValue[]