1CSS::Style(3) User Contributed Perl Documentation CSS::Style(3)
2
3
4
6 CSS::Style - A ruleset in a CSS object tree
7
9 use CSS;
10
12 This module represents a ruleset in a CSS object tree. Read the CSS.pm
13 pod for information about the CSS object tree.
14
16 CONSTRUCTORS
17
18 "new()" or "new( { ..options.. } )"
19 This constructor returns a new "CSS::Style" object, with an
20 optional hash of options.
21
22 adaptor adaptor to use for serialization
23
24 ACCESSORS
25
26 "add_selector( $selector )"
27 This method adds a selector to the selector list for the object.
28 $selector is a reference to a CSS::Selector object.
29
30 "add_property( $property )"
31 This method adds a selector to the property list for the object.
32 $property is a reference to a CSS::Property object.
33
34 "set_adaptor( 'CSS::Adaptor::Foo' )"
35 This method sets the current adaptor for the object.
36
37 "selectors()"
38 This method is used to serialize the ruleset's selectors, using the
39 current adaptor. It returns a string which come from the adaptor's
40 "output_selectors()" method.
41
42 "properties()"
43 This method is used to serialize the ruleset's properties, using
44 the current adaptor. It returns a string which come from the adap‐
45 tor's "output_properties()" method.
46
47 "to_string()"
48 This method is used to serialize the ruleset, using the current
49 adaptor. It returns a string which comes from the adaptor's out‐
50 put_rules() method.
51
52 "get_property_by_name( 'property_name' )"
53 Returns the first CSS::Property object with the specified name.
54 Returns zero on failure.
55
57 Copyright (C) 2003-2004, Cal Henderson <cal@iamcal.com>
58
60 CSS, http://www.w3.org/TR/REC-CSS1
61
62
63
64perl v5.8.8 2008-04-22 CSS::Style(3)