Logo Search packages:      
Sourcecode: calibre version File versions

cssutils::css::cssstyledeclaration::CSSStyleDeclaration Class Reference

Inheritance diagram for cssutils::css::cssstyledeclaration::CSSStyleDeclaration:

cssutils::util::Base2 cssutils::util::Base cssutils::util::_NewBase cssutils::util::_BaseClass cssutils::util::_BaseClass

List of all members.

Detailed Description

The CSSStyleDeclaration class represents a single CSS declaration
block. This class may be used to determine the style properties
currently set in a block or to set style properties explicitly
within the block.

While an implementation may not recognize all CSS properties within
a CSS declaration block, it is expected to provide access to all
specified properties in the style sheet through the
CSSStyleDeclaration interface.
Furthermore, implementations that support a specific level of CSS
should correctly handle CSS shorthand properties for that level. For
a further discussion of shorthand properties, see the CSS2Properties

Additionally the CSS2Properties interface is implemented.

    All properties defined in the CSS2Properties class are available
    as direct properties of CSSStyleDeclaration with their respective
    DOM name, so e.g. ``fontStyle`` for property 'font-style'.

    These may be used as::

        >>> style = CSSStyleDeclaration(cssText='color: red')
        >>> style.color = 'green'
        >>> print style.color
        >>> del style.color
        >>> print style.color


    [Property: Value Priority?;]* [Property: Value Priority?]?

Definition at line 61 of file cssstyledeclaration.py.

Public Member Functions

def __contains__
def __delitem__
def __getitem__
def __init__
def __init__
def __iter__
def __repr__
def __setattr__
def __setitem__
def __str__
def children
def getCssText
def getProperties
def getProperty
def getPropertyCSSValue
def getPropertyPriority
def getPropertyValue
def item
def keys
def removeProperty
def setProperty

Public Attributes


Static Public Attributes

tuple cssText
tuple length
tuple parentRule
tuple seq

Private Member Functions

def __nnames
def _delP
def _getCssText
def _getP
def _setCssText
def _setP
def _setParentRule

Private Attributes


The documentation for this class was generated from the following file:

Generated by  Doxygen 1.6.0   Back to index