
CSS::DOM::Value::Primitive - CSSPrimitiveValue class for CSS::DOM

Version 0.06

# ...

This module implements objects that represent CSS primitive property values (as opposed to lists). It implements the DOM CSSPrimitiveValue interface and inherits from CSS::DOM::Value.

You probably don't need to call this, but here it is anyway:
$val = new CSS::DOM::Value::Primitive TYPE, @args;
where TYPE is one of the constants listed below. The @args are interpreted differently depending on the TYPE:
$class = "CSS::DOM::Value::Primitive"; $val = new $class CSS_DIMENSION, $value, $unit_text $val = new $class CSS_COUNTER, $counter_name, $separator, $style $val = new $class CSS_RECT, $top, $right, $bottom, $left
All other types just use the first of the @args, treating it as the value.
Returns a string representation of the attribute. Pass an argument to set it (not yet supported).
The rest have still to be implemented.
Returns CSS::DOM::Value::CSS_PRIMITIVE_VALUE.

The following constants can be imported with use CSS::DOM::Value::Primitive ':all'. They represent the type of primitive value.

CSS::DOM::Value::List (doesn't exist yet)