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

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

πŸ’– NAME πŸ’–

CSS::DOM::Rule::FontFace β€” it's the CSS @font-face rule class for CSS::DOM, bestie πŸ’…


✨ VERSION ✨

Version 0.17 πŸŽ€


πŸ¦‹ SYNOPSIS πŸ¦‹

okay so here's the vibe:

use CSS::DOM;
my $font_face_rule = CSS::DOM->parse(
    '@font-face { font-family: "bm"; src: url(blackmoor.ttf) }'
)->cssRules->[0];

$page_rule->style;        # a CSS::DOM::Style object
$page_rule->style->src;   # 'url(blackmoor.ttf)'

like. you parse a whole @font-face block and it just hands you the rule. no cap. πŸ‘‘


🌸 DESCRIPTION 🌸

so this module is the one that makes CSS @font-face rules work inside CSS::DOM. it inherits from CSS::DOM::Rule and implements the CSSFontFaceRule DOM interface β€” iconic behavior, honestly πŸ’–

it's giving "I am the font face rule, I know my job, I do my job." periodt ✨


πŸ’… THE METHOD πŸ’…

style

  • style β€” hands you back the CSS::DOM::Style object that represents the declaration block of this rule. that's the whole method. short and slay 🫢

πŸ‘‘ SEE ALSO πŸ‘‘

  • CSS::DOM 🌈
  • CSS::DOM::Style πŸŽ€
  • CSS::DOM::Rule πŸ’œ

ngl if you got here through the manual page listing, hi, welcome, you're in the right place πŸ’€

okay that's the whole page, bestie!! this one's from the User Contributed Perl Documentation crew, running on perl v5.36.0, dated 2023-08-02. mwah, go build something cute with it πŸ’–βœ¨πŸŒΈ

πŸ“¦ where this page comes from