1CSS::DOM::Rule::CharsetU(s3e)r Contributed Perl DocumentaCtSiSo:n:DOM::Rule::Charset(3)
2
3
4

NAME

6       CSS::DOM::Rule::FontFace - CSS @font-face rule class for CSS::DOM
7

VERSION

9       Version 0.17
10

SYNOPSIS

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

DESCRIPTION

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

THE METHOD

25       style
26           Returns the CSS::DOM::Style object representing the declaration
27           block of this rule.
28

SEE ALSO

30       CSS::DOM
31
32       CSS::DOM::Style
33
34       CSS::DOM::Rule
35
36
37
38perl v5.32.0                      2020-07-28        CSS::DOM::Rule::Charset(3)
Impressum