CSS::DOM::Rule::Style - CSS style rule class for CSS::DOM
Version 0.16
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 CSS style rules for CSS::DOM. It inherits from CSS::DOM::Rule and implements the CSSStyleRule DOM 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.
CSS::DOM
CSS::DOM::Style
CSS::DOM::Rule
To install CSS::DOM, copy and paste the appropriate command in to your terminal.
cpanm
cpanm CSS::DOM
CPAN shell
perl -MCPAN -e shell install CSS::DOM
For more information on module installation, please visit the detailed CPAN module installation guide.