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): `_ttypes`

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
_getLength(self) | 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`, `_setCssText`, `_setValue` Inherited from `util.Base` (private): `_checkReadonly`, `_tokenize`, `_tokensupto`, `_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.
| __ws = `re.compile(r'^\s`*`$')`
Inherited from `CSSValue`: `CSS_CUSTOM`, `CSS_INHERIT`, `CSS_PRIMITIVE_VALUE`, `CSS_VALUE_LIST` Inherited from `CSSValue` (private): `_typestrings` Inherited from `util.Base` (private): `_log`

Properties | [hide private]
| length (DOM attribute) The number of CSSValues in the list.
Inherited from `CSSValue`: `cssText`, `cssValueTypeString` Inherited from `CSSValue` (private): `_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: CSSValue.__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: cssutils.css.cssvalue.CSSValueList._getLength(self) Set Method:
      None
  Delete Method:
      None