| Home | Trees | Indices | Help |
|
|---|
|
|
object --+
|
util.Base --+
|
CSSValue
The CSSValue interface represents a simple or a complex value. A CSSValue object only occurs in a context of a CSS property
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
Inherited from Inherited from |
|||
|
|||
|
Inherited from |
|||
|
|||
CSS_INHERIT = 0The value is inherited and the cssText contains "inherit". |
|||
CSS_PRIMITIVE_VALUE = 1The 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 = 2The 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. |
|||
CSS_CUSTOM = 3The value is a custom value. |
|||
_typestrings =
|
|||
|
Inherited from |
|||
|
|||
|
_value Actual cssText value of this CSSValue. |
|||
|
cssText A string representation of the current value. |
|||
|
cssValueType A (readonly) code defining the type of the value as defined above. |
|||
|
cssValueTypeString cssutils: Name of cssValueType of this CSSValue (readonly). |
|||
|
_propertyName cssutils: Property this values is validated against |
|||
|
Inherited from |
|||
|
|||
inits a new CSS Value
|
unary_operator
: '-' | '+'
;
operator
: '/' S* | ',' S* | /* empty */
;
expr
: term [ operator term ]*
;
term
: unary_operator?
[ NUMBER S* | PERCENTAGE S* | LENGTH S* | EMS S* | EXS S* | ANGLE S* |
TIME S* | FREQ S* ]
| STRING S* | IDENT S* | URI S* | hexcolor | function
;
function
: FUNCTION S* expr ')' S*
;
/*
* There is a constraint on the color that it must
* have either 3 or 6 hex-digits (i.e., [0-9a-fA-F])
* after the "#"; e.g., "#000" is OK, but "#abcd" is not.
*/
hexcolor
: HASH S*
;
DOMException on setting
|
repr(x)
|
str(x)
|
|
|||
_typestrings
|
|
|||
_valueActual cssText value of this CSSValue. |
cssTextA string representation of the current value.
|
cssValueTypeA (readonly) code defining the type of the value as defined above.
|
cssValueTypeStringcssutils: Name of cssValueType of this CSSValue (readonly).
|
_propertyNamecssutils: Property this values is validated against
|
| Home | Trees | Indices | Help |
|
|---|
| Generated by Epydoc 3.0.1 on Mon Aug 11 21:02:56 2008 | http://epydoc.sourceforge.net |