VERSION

Version 0.15

SYNOPSIS

  # ...

DESCRIPTION

This module implements objects that represent \s-1CSS\s0 property values. It implements the \s-1DOM\s0 CSSValue interface.

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

METHODS

Object Methods

cssText

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

cssValueType

Returns one of the constants below.

Constructor

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

$val = new CSS::DOM::Value %arguments;

The hash-style %arguments are as follows:

type

\*(C`CSS_INHERIT\*(C' or \*(C`CSS_CUSTOM\*(C'

css

A string of \s-1CSS\s0 code. This is only used when \*(C`TYPE\*(C' is \*(C`CSS_CUSTOM\*(C'.

owner

The style object that owns this value; if this is omitted, then the value is read-only. The value object holds a weak reference to the owner.

property

The name of the \s-1CSS\s0 property to which this value belongs. \*(C`cssText\*(C' uses this to determine how to parse text passed to it.

CONSTANTS

The following constants can be imported with \*(C`use CSS::DOM::Value ':all'\*(C'. They represent the type of \s-1CSS\s0 value.

\s-1CSS_INHERIT\s0 (0)
\s-1CSS_PRIMITIVE_VALUE\s0 (1)
\s-1CSS_VALUE_LIST\s0 (2)
\s-1CSS_CUSTOM\s0 (3)

RELATED TO CSS::DOM::Value…

\s-1CSS::DOM\s0

CSS::DOM::Value::Primitive

CSS::DOM::Value::List

CSS::DOM::Style