Css @font-face rule class for css::dom
Version 0.15
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 \s-1CSS\s0 @font-face rules for \s-1CSS::DOM\s0. It inherits from CSS::DOM::Rule and implements the CSSFontFaceRule \s-1DOM\s0 interface.
Returns the CSS::DOM::Style object representing the declaration block of this rule.
\s-1CSS::DOM\s0
CSS::DOM::Style
CSS::DOM::Rule