NAME

CSS::DOM::Value - CSSValue class for CSS::DOM

VERSION

Version 0.07

SYNOPSIS

# ...

DESCRIPTION

This module implements objects that represent CSS property values. It implements the DOM CSSValue interface.

This class itself is used for custom values (neither primitive values nor lists) and the special 'inherit' value. Subclasses are used for the others.

METHODS

Constructor

See also CSS::DOM::Value::Primitive, which has its own constructor.

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

$val = new CSS::DOM::Value TYPE, $css_string;

where TYPE is CSS_INHERIT or CSS_CUSTOM. The $css_string is only used when TYPE is CSS_CUSTOM.

Object Methods

cssText

Returns a string representation of the attribute. Pass an argument to set it.

cssValueType

Returns one of the constants below.

CONSTANTS

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

CSS_INHERIT (0)
CSS_PRIMITIVE_VALUE (1)
CSS_VALUE_LIST (2)
CSS_CUSTOM (3)

SEE ALSO

CSS::DOM

CSS::DOM::Value::Primitive

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

CSS::DOM::Style

2 POD Errors

The following errors were encountered while parsing the POD:

Around line 115:

'=item' outside of any '=over'

Around line 123:

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