Css style rule class for css::dom
Version 0.15
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'
This module implements \s-1CSS\s0 style rules for \s-1CSS::DOM\s0. It inherits from CSS::DOM::Rule and implements the CSSStyleRule \s-1DOM\s0 interface.
Returns a string representing the selector(s). Pass an argument to set it.
Returns the CSS::DOM::Style object representing the declaration block of this rule.
\s-1CSS::DOM\s0
CSS::DOM::Style
CSS::DOM::Rule