The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

CSS::Style - Represents a selector section of a CSS document

SYNOPSIS

  use CSS;
  ...

DESCRIPTION

Maybe it should be called CSS::Selector, but I thought that was a lousy name.

This class represents a selector from a CSS object.

METHODS

adaptor() read/write. view/change the adaptor used by convert() and converts().

property( scalar ) returns a hash of the property and its value

properties() returns a hash of all properties and values of the Style object

convert() like property(), except the property tag is converted by adaptor()

converts() like properties(), except the property tags are converted by adaptor()

add( property, value) see edit().

edit( property, value) write only. add a property to the Style object.

purge( scalar ) write-only. drop a property from the Style object.

selector( scalar ) read/write. view/change the name of the selector.

CONSTRUCTOR

Only one constructor: new(). Called with: -adaptor optional used for transforming properties

ACCESSORS

AUTHOR

Allen Day <allenday@ucla.edu> Copyright (c) 2001-2002

SEE ALSO

CSS::Style CSS::Adaptor perl(1).