1CSS::DOM::Value(3)    User Contributed Perl Documentation   CSS::DOM::Value(3)
2
3
4

NAME

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

VERSION

9       Version 0.17
10

SYNOPSIS

12         # ...
13

DESCRIPTION

15       This module implements objects that represent CSS property values. It
16       implements the DOM CSSValue interface.
17
18       This class is used only for custom values (neither primitive values nor
19       lists) and the special 'inherit' value.
20

METHODS

22   Object Methods
23       cssText
24           Returns a string representation of the attribute. Pass an argument
25           to set it.
26
27       cssValueType
28           Returns one of the constants below.
29
30   Constructor
31       You probably don't need to call this, but here it is anyway:
32
33         $val = new CSS::DOM::Value %arguments;
34
35       The hash-style %arguments are as follows:
36
37       type
38           "CSS_INHERIT" or "CSS_CUSTOM"
39
40       css A string of CSS code. This is only used when "TYPE" is
41           "CSS_CUSTOM".
42
43       owner
44           The style object that owns this value; if this is omitted, then the
45           value is read-only. The value object holds a weak reference to the
46           owner.
47
48       property
49           The name of the CSS property to which this value belongs. "cssText"
50           uses this to determine how to parse text passed to it.
51

CONSTANTS

53       The following constants can be imported with "use CSS::DOM::Value
54       ':all'".  They represent the type of CSS value.
55
56       CSS_INHERIT (0)
57       CSS_PRIMITIVE_VALUE (1)
58       CSS_VALUE_LIST (2)
59       CSS_CUSTOM (3)
60

SEE ALSO

62       CSS::DOM
63
64       CSS::DOM::Value::Primitive
65
66       CSS::DOM::Value::List
67
68       CSS::DOM::Style
69
70
71
72perl v5.30.0                      2019-07-26                CSS::DOM::Value(3)
Impressum