.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) .\" .\" Standard preamble: .\" ======================================================================== .de Sp \" Vertical space (when we can't use .PP) .if t .sp .5v .if n .sp .. .de Vb \" Begin verbatim text .ft CW .nf .ne \\$1 .. .de Ve \" End verbatim text .ft R .fi .. .\" Set up some character translations and predefined strings. \*(-- will .\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left .\" double quote, and \*(R" will give a right double quote. \*(C+ will .\" give a nicer C++. Capital omega is used to do unbreakable dashes and .\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff, .\" nothing in troff, for use with C<>. .tr \(*W- .ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p' .ie n \{\ . ds -- \(*W- . ds PI pi . if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch . if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch . ds L" "" . ds R" "" . ds C` "" . ds C' "" 'br\} .el\{\ . ds -- \|\(em\| . ds PI \(*p . ds L" `` . ds R" '' . ds C` . ds C' 'br\} .\" .\" Escape single quotes in literal strings from groff's Unicode transform. .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" .\" If the F register is >0, we'll generate index entries on stderr for .\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index .\" entries marked with X<> in POD. Of course, you'll have to process the .\" output yourself in some meaningful fashion. .\" .\" Avoid warning from groff about undefined register 'F'. .de IX .. .nr rF 0 .if \n(.g .if rF .nr rF 1 .if (\n(rF:(\n(.g==0)) \{\ . if \nF \{\ . de IX . tm Index:\\$1\t\\n%\t"\\$2" .. . if !\nF==2 \{\ . nr % 0 . nr F 2 . \} . \} .\} .rr rF .\" ======================================================================== .\" .IX Title "CSS::Style 3pm" .TH CSS::Style 3pm "2020-12-29" "perl v5.32.0" "User Contributed Perl Documentation" .\" For nroff, turn off justification. Always turn off hyphenation; it makes .\" way too many mistakes in technical documents. .if n .ad l .nh .SH "NAME" CSS::Style \- A ruleset in a CSS object tree .SH "SYNOPSIS" .IX Header "SYNOPSIS" .Vb 1 \& use CSS; .Ve .SH "DESCRIPTION" .IX Header "DESCRIPTION" This module represents a ruleset in a \s-1CSS\s0 object tree. Read the \s-1CSS\s0.pm pod for information about the \s-1CSS\s0 object tree. .SH "METHODS" .IX Header "METHODS" .SS "\s-1CONSTRUCTORS\s0" .IX Subsection "CONSTRUCTORS" .ie n .IP """new()"" or ""new( { ..options.. } )""" 4 .el .IP "\f(CWnew()\fR or \f(CWnew( { ..options.. } )\fR" 4 .IX Item "new() or new( { ..options.. } )" This constructor returns a new \f(CW\*(C`CSS::Style\*(C'\fR object, with an optional hash of options. .Sp .Vb 1 \& adaptor adaptor to use for serialization .Ve .SS "\s-1ACCESSORS\s0" .IX Subsection "ACCESSORS" .ie n .IP """add_selector( $selector )""" 4 .el .IP "\f(CWadd_selector( $selector )\fR" 4 .IX Item "add_selector( $selector )" This method adds a selector to the selector list for the object. \&\f(CW$selector\fR is a reference to a CSS::Selector object. .ie n .IP """add_property( $property )""" 4 .el .IP "\f(CWadd_property( $property )\fR" 4 .IX Item "add_property( $property )" This method adds a selector to the property list for the object. \&\f(CW$property\fR is a reference to a CSS::Property object. .ie n .IP """set_adaptor( \*(AqCSS::Adaptor::Foo\*(Aq )""" 4 .el .IP "\f(CWset_adaptor( \*(AqCSS::Adaptor::Foo\*(Aq )\fR" 4 .IX Item "set_adaptor( CSS::Adaptor::Foo )" This method sets the current adaptor for the object. .ie n .IP """selectors()""" 4 .el .IP "\f(CWselectors()\fR" 4 .IX Item "selectors()" This method is used to serialize the ruleset's selectors, using the current adaptor. It returns a string which come from the adaptor's \f(CW\*(C`output_selectors()\*(C'\fR method. .ie n .IP """properties()""" 4 .el .IP "\f(CWproperties()\fR" 4 .IX Item "properties()" This method is used to serialize the ruleset's properties, using the current adaptor. It returns a string which come from the adaptor's \f(CW\*(C`output_properties()\*(C'\fR method. .ie n .IP """to_string()""" 4 .el .IP "\f(CWto_string()\fR" 4 .IX Item "to_string()" This method is used to serialize the ruleset, using the current adaptor. It returns a string which comes from the adaptor's \fBoutput_rules()\fR method. .ie n .IP """get_property_by_name( \*(Aqproperty_name\*(Aq )""" 4 .el .IP "\f(CWget_property_by_name( \*(Aqproperty_name\*(Aq )\fR" 4 .IX Item "get_property_by_name( property_name )" Returns the first CSS::Property object with the specified name. Returns zero on failure. .SH "AUTHOR" .IX Header "AUTHOR" Copyright (C) 2003\-2004, Cal Henderson .SH "SEE ALSO" .IX Header "SEE ALSO" \&\s-1CSS\s0, http://www.w3.org/TR/REC\-CSS1