CSS::D...ntFace(3pm)
π 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 theCSS::DOM::Styleobject 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
- 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