Package cssutils :: Package css :: Module cssvalue :: Class CSSValueList |
[hide private]
[frames] | no frames]

# Class CSSValueList

source code

    object --+
             |
     util.Base --+
                 |
          CSSValue --+
                     |
                    CSSValueList

The CSSValueList interface provides the abstraction of an ordered collection of CSS values.

Some properties allow an empty list into their syntax. In that case, these properties take the none identifier. So, an empty list means that the property has the value none.

The items in the CSSValueList are accessible via an integral index, starting from 0.

Nested Classes | [hide private]
Inherited from `util.Base` (private): `_prods`

Instance Methods | [hide private]
__init__(self, cssText=None, readonly=False, _propertyName=None) inits a new CSSValueList | source code
_init(self) called by CSSValue if newly identified as CSSValueList | source code
item(self, index) (DOM method) Used to retrieve a CSSValue by ordinal index. | source code
__iter__(self) CSSValueList is iterable | source code
__items(self) the iterator | source code
__str_(self) | source code
Inherited from `CSSValue`: `__repr__`, `__str__` Inherited from `CSSValue` (private): `_getCssText`, `_getCssValueType`, `_getCssValueTypeString`, `_getValue`, `_get_propertyName`, `_setCssText`, `_setValue`, `_set_propertyName`, `_validate` Inherited from `util.Base` (private): `_adddefaultproductions`, `_checkReadonly`, `_nexttoken`, `_parse`, `_splitNamespacesOff`, `_stringtokenvalue`, `_tokenize2`, `_tokensupto2`, `_tokenvalue`, `_type`, `_uritokenvalue`, `_valuestr` Inherited from `object`: `__delattr__`, `__getattribute__`, `__hash__`, `__new__`, `__reduce__`, `__reduce_ex__`, `__setattr__`

Static Methods | [hide private]
Inherited from `util.Base` (private): `_normalize`

Class Variables | [hide private]
| cssValueType = `2` A (readonly) code defining the type of the value as defined above.
Inherited from `CSSValue`: `CSS_CUSTOM`, `CSS_INHERIT`, `CSS_PRIMITIVE_VALUE`, `CSS_VALUE_LIST` Inherited from `CSSValue` (private): `_typestrings` Inherited from `util.Base` (private): `_SHORTHANDPROPERTIES`, `_log`

Properties | [hide private]
| length (DOM attribute) The number of CSSValues in the list.
Inherited from `CSSValue`: `cssText`, `cssValueTypeString` Inherited from `CSSValue` (private): `_propertyName`, `_value` Inherited from `object`: `__class__`

Method Details | [hide private]

### __init__(self, cssText=None, readonly=False, _propertyName=None) (Constructor) | source code
inits a new CSSValueList Overrides: object.__init__

### item(self, index) | source code
(DOM method) 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 None.

Property Details | [hide private]

### length (DOM attribute) The number of CSSValues in the list. Get Method: unreachable(self)