1CSS::DOM::Rule::Style(3U)ser Contributed Perl DocumentatiCoSnS::DOM::Rule::Style(3)
2
3
4
6 CSS::DOM::Rule::Style - CSS style rule class for CSS::DOM
7
9 Version 0.17
10
12 use CSS::DOM;
13 my $ruleset = CSS::DOM->parse(
14 'p:firstline, h3 { font-weight: bold }'
15 )->cssRules->[0];
16
17 $ruleset->selectorText; # 'p:firstline, h3'
18 $ruleset->style; # a CSS::DOM::Style object
19 $ruleset->style->fontWeight; # 'bold'
20
22 This module implements CSS style rules for CSS::DOM. It inherits from
23 CSS::DOM::Rule and implements the CSSStyleRule DOM interface.
24
26 selectorText
27 Returns a string representing the selector(s). Pass an argument to
28 set it.
29
30 style
31 Returns the CSS::DOM::Style object representing the declaration
32 block of this rule.
33
35 CSS::DOM
36
37 CSS::DOM::Style
38
39 CSS::DOM::Rule
40
41
42
43perl v5.28.0 2018-01-29 CSS::DOM::Rule::Style(3)