Package cssutils :: Package css :: Module cssstyledeclaration :: Class SameNamePropertyList |
[hide private]
[frames] | no frames]

# Class SameNamePropertyList

source code

    object --+
             |
          list --+
                 |
                SameNamePropertyList

(cssutils) EXPERIMENTAL

A list of properties with the same normalname. Used for equivelant properties like color, color, color. To get the actual Property (latest with the highest priority) use SameNamePropertyList[SameNamePropertyList._currentIndex()].

# Properties

name

  normalized Property name (e.g. `color`)

  see `token.Token` for details on "normalized"

Useful only if all similar named properties should be kept after parsing. See `Serializer.prefs.keepAllProperties`

Instance Methods | [hide private]
__init__(self, name) x.__init__(...) initializes x; see x.__class__.__doc__ for signature | source code
_currentIndex(self) returns index of current value of this property used by serializer and getValue and getPriority | source code
__repr__(self) repr(x) | source code
__str__(self) str(x) | source code
Inherited from `list`: `__add__`, `__contains__`, `__delitem__`, `__delslice__`, `__eq__`, `__ge__`, `__getattribute__`, `__getitem__`, `__getslice__`, `__gt__`, `__hash__`, `__iadd__`, `__imul__`, `__iter__`, `__le__`, `__len__`, `__lt__`, `__mul__`, `__ne__`, `__new__`, `__reversed__`, `__rmul__`, `__setitem__`, `__setslice__`, `append`, `count`, `extend`, `index`, `insert`, `pop`, `remove`, `reverse`, `sort` Inherited from `object`: `__delattr__`, `__reduce__`, `__reduce_ex__`, `__setattr__`

Properties | [hide private]
Inherited from `object`: `__class__`

Method Details | [hide private]

### __init__(self, name) (Constructor) | source code
  x.__init__(...) initializes x; see x.__class__.__doc__ for signature Returns:
      new list
Overrides: list.__init__ (inherited documentation)

### __repr__(self) (Representation operator) | source code
repr(x) Overrides: list.__repr__ (inherited documentation)

### __str__(self) (Informal representation operator) | source code
str(x) Overrides: object.__str__ (inherited documentation)