1CSS::DOM::Value::List(3U)ser Contributed Perl DocumentatiCoSnS::DOM::Value::List(3)
2
3
4

NAME

6       CSS::DOM::Value::List - CSSValueList class for CSS::DOM
7

VERSION

9       Version 0.17
10

SYNOPSIS

12         # ...
13

DESCRIPTION

15       This module implements objects that represent CSS list property values.
16       It implements the DOM CSSValueList interface.
17
18       You can access the individual elements of the list using the "item" and
19       "length" methods, or by using it as an array ref.
20

METHODS

22       If you need the constructor, it's below the object methods. Normally
23       you would get an object via CSS::DOM::Style's "getPropertyCSSValue"
24       method.
25
26   CSSValue Interface
27       cssText
28           Returns a string representation of the attribute. Pass an argument
29           to set it.
30
31       cssValueType
32           Returns "CSS::DOM::Value::CSS_PRIMITIVE_VALUE".
33
34   CSSValueList Interface
35       item
36           Returns the 'primitive' value at the given index.
37
38       length
39           Returns the number of values in the list.
40
41   Constructor
42       You probably don't need to call this, but here it is anyway:
43
44         $val = new CSS::DOM::Value::List:: %args;
45
46       The hash-style arguments are as follows. Only "values" is required.
47
48       values
49           This must be an array ref containing the individual values to be
50           stored in the list. The individual elements can be value objects or
51           array refs of arguments to pass to "new
52           CSS::DOM::Value::Primitive". E.g.,
53
54            [
55                [type => CSS_PX, value => 20],
56                [type => CSS_PERCENTAGE, value => 50],
57                [type => CSS_PERCENTAGE, value => 50],
58                [type => CSS_PX, value => 50],
59            ]
60
61       css CSS code used for serialisation. This will make reading "cssText"
62           faster at least until the value is modified.
63
64       separator
65           The value separator used in serialisation. This is usually ' ' or
66           ', '. An empty string or "undef" is treated as a space.
67
68       owner
69           The style object that owns this value; if this is omitted, then the
70           value is read-only. The value object holds a weak reference to the
71           owner.
72
73       property
74           The name of the CSS property to which this value belongs. "cssText"
75           uses this to determine how to parse text passed to it. This does
76           not apply to the sub-values of colours, counters and rects, but it
77           does apply to individual elements of a list value.
78

SEE ALSO

80       CSS::DOM
81
82       CSS::DOM::Value
83
84       CSS::DOM::Value::Primitive
85
86       CSS::DOM::Style
87
88
89
90perl v5.38.0                      2023-07-20          CSS::DOM::Value::List(3)
Impressum