# class CSSValue

###

Module | khtml
Namespace | DOM
Class | CSSValue
Inherits |

The CSSValue interface represents a simple or a complexe value.

### enums

- UnitTypes { CSS_INHERIT, CSS_PRIMITIVE_VALUE, CSS_VALUE_LIST, CSS_CUSTOM, CSS_INITIAL }

enum details

### methods

- CSSValue ( )

  returns ctor

- CSSValue (other)

  returns ctor

  Argument | Type | Default
  --- | --- | ---
  other | DOM.CSSValue |

- CSSValue (impl)

  returns ctor
  Not implemented

  Argument | Type | Default
  --- | --- | ---
  impl | CSSValueImpl |

- cssText ( )

  returns DOM.DOMString

  A string representation of the current value.

- cssValueType ( )

  returns unsigned short

  A code defining the type of the value as defined above.

- handle ( )

  returns CSSValueImpl
  Not implemented

- isCSSPrimitiveValue ( )

  returns bool

- isCSSValueList ( )

  returns bool

  Internal not part of the DOM

- isNull ( )

  returns bool

- setCssText (a0)

  returns Nothing

  Argument | Type | Default
  --- | --- | ---
  a0 | DOM.DOMString |

  see cssText CSSException SYNTAX_ERR: Raised if the specified CSS string value has a syntax error and is unparsable.

  DOMException NO_MODIFICATION_ALLOWED_ERR: Raised if this declaration is readonly.

### enums - detail

- UnitTypes { CSS_INHERIT, CSS_PRIMITIVE_VALUE, CSS_VALUE_LIST, CSS_CUSTOM, CSS_INITIAL }

  An integer indicating which type of unit applies to the value.

  All CSS2 constants are not supposed to be required by the implementation since all CSS2 interfaces are optionals.

  | CSS_INHERIT | - 0 | - |
  | CSS_PRIMITIVE_VALUE | - 1 | - |
  | CSS_VALUE_LIST | - 2 | - |
  | CSS_CUSTOM | - 3 | - |
  | CSS_INITIAL | - 4 | - |