NAME

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

VERSION

Version 0.05

SYNOPSIS

# ...

DESCRIPTION

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.

METHODS

Constructor

You probably don't need to call this, but here it is anyway:

$val = new CSS::DOM::Value::Primitive TYPE, $value, $unit_text;

where TYPE is one of the constants listed below. If TYPE is CSS_DIMENSION, then $unit_text is the name of the unit. Otherwise it is ignored.

Object Methods

cssText

Returns a string representation of the attribute. Pass an argument to set it (not yet supported).

The rest have still to be implemented.

CONSTANTS

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

CSS_UNKNOWN
CSS_NUMBER
CSS_PERCENTAGE
CSS_EMS
CSS_EXS
CSS_PX
CSS_CM
CSS_MM
CSS_IN
CSS_PT
CSS_PC
CSS_DEG
CSS_RAD
CSS_GRAD
CSS_MS
CSS_S
CSS_HZ
CSS_KHZ
CSS_DIMENSION
CSS_STRING
CSS_URI
CSS_IDENT
CSS_ATTR
CSS_COUNTER
CSS_RECT
CSS_RGBCOLOR

SEE ALSO

CSS::DOM

CSS::DOM::Value

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

CSS::DOM::Style

3 POD Errors

The following errors were encountered while parsing the POD:

Around line 224:

Non-ASCII character seen before =encoding in 'don’t'. Assuming UTF-8

Around line 256:

'=item' outside of any '=over'

Around line 308:

You forgot a '=back' before '=head1'