CSS::Style(3pm)

CSS::Style3pm

A ruleset in a css object tree

Usage

  use CSS;

Overview

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

Methods

Constructors

new() or "new( { ..options.. } )"

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

  adaptor       adaptor to use for serialization

Accessors

add_selector( $selector )

This method adds a selector to the selector list for the object. $selector is a reference to a CSS::Selector object.

add_property( $property )

This method adds a selector to the property list for the object. $property is a reference to a CSS::Property object.

set_adaptor( 'CSS::Adaptor::Foo' )

This method sets the current adaptor for the object.

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 output_selectors() method.

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 output_properties() method.

to_string()

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.

get_property_by_name( 'property_name' )

Returns the first CSS::Property object with the specified name. Returns zero on failure.

Releases

9 releases since Debian 5.0 (Lenny); the text changed 5 times.

  1. 5.0
  2. 6.0
  3. 7
  4. 8–10
  5. 11–12
  6. 13

Author

Copyright (C) 2003-2004, Cal Henderson <[email protected]>

From libcss-perl 1.09-2 in Debian 13 (Trixie). Parsed by carta from the page's man source.