CSS::D...Charset(3pm)
π CSS::DOM::Rule::FontFace β bestie edition π
okay so this is CSS::DOM::Rule::FontFace, a little module from the CSS::DOM family β specifically it's the CSS @font-face rule class for CSS::DOM. yes it's a Perl thing, no it's not scary, come sit with me π«Ά
β¨ VERSION β¨
Version 0.17 π
πΈ SYNOPSIS πΈ
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. parse a whole @font-face block, grab the first rule off cssRules, and you're literally holding a font-face rule object. iconic behaviour honestly π
π¦ DESCRIPTION π¦
This module implements CSS @font-face rules for CSS::DOM. It inherits from CSS::DOM::Rule and implements the CSSFontFaceRule DOM interface. that's the whole vibe β it's the glow-up wrapper that makes @font-face behave like a proper DOM citizen π
π THE METHOD π
style
Returns the CSS::DOM::Style object representing the declaration block of this rule. it's giving "here's the actual font-y stuff inside the curly braces" β¨
π₯ SEE ALSO π₯
CSS::DOMβ the parent universe, go there first bestieCSS::DOM::Styleβ the declaration-block energy this method hands youCSS::DOM::Ruleβ the base class this one inherits from, its whole ancestor situation
ngl, no cap, this one's tiny. one method. but she ate. ππ
kisses and Perl, mwah π§ββοΈ β this page came out of perl v5.36.0 and was dated 2023-08-02, and yeah the header/footer kept insisting on calling it CSS::D...Charset(3pm) which is... a choice, but we love her anyway ππ
π¦ 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