1CSS::DOM::Rule::Style(3U)ser Contributed Perl DocumentatiCoSnS::DOM::Rule::Style(3)
2
3
4

NAME

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

VERSION

9       Version 0.17
10

SYNOPSIS

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

DESCRIPTION

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

METHODS

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

SEE ALSO

35       CSS::DOM
36
37       CSS::DOM::Style
38
39       CSS::DOM::Rule
40
41
42
43perl v5.30.0                      2019-07-26          CSS::DOM::Rule::Style(3)
Impressum