Css @page rule class for css::dom
Version 0.15
use CSS::DOM;
my $page_rule = CSS::DOM->parse(
'@page :first { stuff: other stuff }'
)->cssRules->[0];
$page_rule->selectorText; # '@page :first'
$page_rule->style; # a CSS::DOM::Style object
$page_rule->style->stuff; # 'other stuff'
This module implements \s-1CSS\s0 @page rules for \s-1CSS::DOM\s0. It inherits from CSS::DOM::Rule and implements the CSSPageRule \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