1CSS::DOM::Rule::FontFacUes(e3r)Contributed Perl DocumentCaStSi:o:nDOM::Rule::FontFace(3)
2
3
4
6 CSS::DOM::Rule::FontFace - CSS @font-face rule class for CSS::DOM
7
9 Version 0.17
10
12 use CSS::DOM;
13 my $font_face_rule = CSS::DOM->parse(
14 '@font-face { font-family: "bm"; src: url(blackmoor.ttf) }'
15 )->cssRules->[0];
16
17 $page_rule->style; # a CSS::DOM::Style object
18 $page_rule->style->src; # 'url(blackmoor.ttf)'
19
21 This module implements CSS @font-face rules for CSS::DOM. It inherits
22 from CSS::DOM::Rule and implements the CSSFontFaceRule DOM interface.
23
25 style
26 Returns the CSS::DOM::Style object representing the declaration
27 block of this rule.
28
30 CSS::DOM
31
32 CSS::DOM::Style
33
34 CSS::DOM::Rule
35
36
37
38perl v5.30.1 2020-01-29 CSS::DOM::Rule::FontFace(3)