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

NAME

6       CSS::Style - A ruleset in a CSS object tree
7

SYNOPSIS

9         use CSS;
10

DESCRIPTION

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

METHODS

16   CONSTRUCTORS
17       "new()" or "new( { ..options.. } )"
18           This constructor returns a new "CSS::Style" object, with an
19           optional hash of options.
20
21             adaptor       adaptor to use for serialization
22
23   ACCESSORS
24       "add_selector( $selector )"
25           This method adds a selector to the selector list for the object.
26           $selector is a reference to a CSS::Selector object.
27
28       "add_property( $property )"
29           This method adds a selector to the property list for the object.
30           $property is a reference to a CSS::Property object.
31
32       "set_adaptor( 'CSS::Adaptor::Foo' )"
33           This method sets the current adaptor for the object.
34
35       "selectors()"
36           This method is used to serialize the ruleset's selectors, using the
37           current adaptor. It returns a string which come from the adaptor's
38           "output_selectors()" method.
39
40       "properties()"
41           This method is used to serialize the ruleset's properties, using
42           the current adaptor. It returns a string which come from the
43           adaptor's "output_properties()" method.
44
45       "to_string()"
46           This method is used to serialize the ruleset, using the current
47           adaptor. It returns a string which comes from the adaptor's
48           output_rules() method.
49
50       "get_property_by_name( 'property_name' )"
51           Returns the first CSS::Property object with the specified name.
52           Returns zero on failure.
53

AUTHOR

55       Copyright (C) 2003-2004, Cal Henderson <cal@iamcal.com>
56

SEE ALSO

58       CSS, http://www.w3.org/TR/REC-CSS1
59
60
61
62perl v5.30.1                      2020-01-29                     CSS::Style(3)
Impressum