Firefox Tomorrow

web api instance property

CSSUnparsedValue: length property

View on MDN ↗

The length read-only property of the CSSUnparsedValue interface returns the number of items in the object.

Value

An integer.

Examples

In this example we employ the CSSUnparsedValue() constructor, then query the length:

const values = new CSSUnparsedValue(["1em", "#445566", "-45px"]);

console.log(values.length); // 3

Specifications

SpecificationsStandards references are available on the canonical MDN page.

Browser compatibility

Browser compatibilityCompatibility data is available on the canonical MDN page.

See also