CSS::D...::Page(3pm)
β¨ NAME β¨
ok so this is CSS::DOM::Rule::Page β it's the CSS @page rule class for CSS::DOM, bestie π
π VERSION π
Version 0.17 β yes queen, she's got a version number, she's official π
πΈ SYNOPSIS πΈ
here's the whole vibe, fr fr:
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'
see how she parses, grabs rule zero off the cssRules list, reads the selector, and pulls the style object out? main character energy tbh π
π¦ DESCRIPTION π¦
okay so this module is the one that makes CSS @page rules work inside CSS::DOM. it inherits from CSS::DOM::Rule and it implements the CSSPageRule DOM interface. that's the whole job. she's niche, she's specific, she's doing it flawlessly β¨
π METHODS π
selectorTextβ returns a string with the selector(s) in it. want to change them? pass an argument and she'll set it for you. lowkey the most powerful little getter/setter combo π«Άstyleβ returns theCSS::DOM::Styleobject that represents this rule's declaration block. that's where all the actual declarations live, so likeβ¦ the important part π
π₯ SEE ALSO π₯
CSS::DOMCSS::DOM::StyleCSS::DOM::Rule
no cap, if you're messing with @page rules in Perl, these three are your girlies. go read them, iykyk π
okay bye bestie, this page came to you courtesy of perl v5.36.0, dated 2023-08-02 β and yeah the manual name up top is CSS::D...::Page(3pm) if you were wondering ππ slay, periodt πβ¨
π¦ where this page comes from
- debian trixie: libcss-dom-perl 0.17-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libcss-dom-perl 0.17-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libcss-dom-perl 0.17-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libcss-dom-perl 0.17-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms