The CSSValueList interface derives from the CSSValue interface and provides the abstraction of an ordered collection of CSS values.

Documentation CSSValueList by Mozilla Contributors, licensed under CC-BY-SA 2.5.

See:

Variables

read onlylength:Int

An unsigned long representing the number of CSSValues in the list.

Methods

item (index:Int):CSSValue

This method is used to retrieve a CSSValue by ordinal index. The order in this collection represents the order of the values in the CSS style property. If index is greater than or equal to the number of values in the list, this returns null.

Inherited Variables

Defined by CSSValue

cssText:String

A DOMString representing the current value.

read onlycssValueType:Int

An unsigned short representing a code defining the type of the value. Possible values are:

Constant Description
CSS_CUSTOM The value is a custom value.
CSS_INHERIT The value is inherited and the cssText contains "inherit".
CSS_PRIMITIVE_VALUE The value is a primitive value and an instance of the CSSPrimitiveValue interface can be obtained by using binding-specific casting methods on this instance of the CSSValue interface.
CSS_VALUE_LIST The value is a CSSValue list and an instance of the CSSValueList interface can be obtained by using binding-specific casting methods on this instance of the CSSValue interface.

Inherited Methods