CSS::D...::Page(3pm)

πŸ“¦
version 0.17 Β· 5 versions
, in debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking

✨ 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 the CSS::DOM::Style object that represents this rule's declaration block. that's where all the actual declarations live, so like… the important part πŸ’–

πŸ”₯ SEE ALSO πŸ”₯

  • CSS::DOM
  • CSS::DOM::Style
  • CSS::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