CSS::DOM::Rule::FontFace - CSS @font-face rule class for CSS::DOM
Version 0.17
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)'
This module implements CSS @font-face rules for CSS::DOM. It inherits from CSS::DOM::Rule and implements the CSSFontFaceRule DOM interface.
Returns the CSS::DOM::Style object representing the declaration block of this rule.
CSS::DOM
CSS::DOM::Style
CSS::DOM::Rule
To install CSS::DOM, copy and paste the appropriate command in to your terminal.
cpanm
cpanm CSS::DOM
CPAN shell
perl -MCPAN -e shell install CSS::DOM
For more information on module installation, please visit the detailed CPAN module installation guide.