Man pages sections > man3 > CSS::DOM::Rule::Charset

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

CSS::DOM::Rule::Charset(3pm) User Contributed Perl Documentation CSS::DOM::Rule::Charset(3pm)

NAME

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

VERSION

Version 0.16

SYNOPSIS

  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)'

DESCRIPTION

This module implements CSS @font-face rules for CSS::DOM. It inherits from CSS::DOM::Rule and implements the CSSFontFaceRule DOM interface.

THE METHOD

style
Returns the CSS::DOM::Style object representing the declaration block of this rule.

SEE ALSO

CSS::DOM
CSS::DOM::Style
CSS::DOM::Rule
2015-11-29 perl v5.20.2