1CSS::DOM::Rule::CharsetU(s3e)r Contributed Perl DocumentaCtSiSo:n:DOM::Rule::Charset(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.0 2019-07-26 CSS::DOM::Rule::Charset(3)