1CSS::DOM::Rule::Page(3)User Contributed Perl DocumentatioCnSS::DOM::Rule::Page(3)
2
3
4

NAME

6       CSS::DOM::Rule::Page - CSS @page rule class for CSS::DOM
7

VERSION

9       Version 0.17
10

SYNOPSIS

12         use CSS::DOM;
13         my $page_rule = CSS::DOM->parse(
14             '@page :first { stuff: other stuff }'
15         )->cssRules->[0];
16
17         $page_rule->selectorText; # '@page :first'
18         $page_rule->style;        # a CSS::DOM::Style object
19         $page_rule->style->stuff; # 'other stuff'
20

DESCRIPTION

22       This module implements CSS @page rules for CSS::DOM. It inherits from
23       CSS::DOM::Rule and implements the CSSPageRule 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.28.0                      2018-01-29           CSS::DOM::Rule::Page(3)
Impressum