CSS::DOM::Rule::Style - CSS style rule class for CSS::DOM


CSS-DOM documentation  | view source Contained in the CSS-DOM distribution.

Index


NAME

Top

CSS::DOM::Rule::Style - CSS style rule class for CSS::DOM

VERSION

Top

Version 0.14

SYNOPSIS

Top

  use CSS::DOM;
  my $ruleset = CSS::DOM->parse(
      'p:firstline, h3 { font-weight: bold }'
  )->cssRules->[0];

  $ruleset->selectorText;      # 'p:firstline, h3'
  $ruleset->style;             # a CSS::DOM::Style object
  $ruleset->style->fontWeight; # 'bold'

DESCRIPTION

Top

This module implements CSS style rules for CSS::DOM. It inherits from CSS::DOM::Rule and implements the CSSStyleRule DOM interface.

METHODS

Top

selectorText

Returns a string representing the selector(s). Pass an argument to set it.

style

Returns the CSS::DOM::Style object representing the declaration block of this rule.

SEE ALSO

Top

CSS::DOM

CSS::DOM::Style

CSS::DOM::Rule


CSS-DOM documentation  | view source Contained in the CSS-DOM distribution.