DOKK / manpages / debian 13 / libcss-perl / CSS::Style.3pm.en
CSS::Style(3pm) User Contributed Perl Documentation CSS::Style(3pm)

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

  use CSS;

This module represents a ruleset in a CSS object tree. Read the CSS.pm pod for information about the CSS object tree.

This constructor returns a new "CSS::Style" object, with an optional hash of options.

  adaptor       adaptor to use for serialization
    

This method adds a selector to the selector list for the object. $selector is a reference to a CSS::Selector object.
This method adds a selector to the property list for the object. $property is a reference to a CSS::Property object.
This method sets the current adaptor for the object.
This method is used to serialize the ruleset's selectors, using the current adaptor. It returns a string which come from the adaptor's output_selectors() method.
This method is used to serialize the ruleset's properties, using the current adaptor. It returns a string which come from the adaptor's output_properties() method.
This method is used to serialize the ruleset, using the current adaptor. It returns a string which comes from the adaptor's output_rules() method.
Returns the first CSS::Property object with the specified name. Returns zero on failure.

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

CSS, http://www.w3.org/TR/REC-CSS1

2025-04-22 perl v5.40.1