logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

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

Description

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

Name

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

See Also

       CSS::DOM

       CSS::DOM::Style

       CSS::DOM::Rule

perl v5.36.0                                       2023-08-02                       CSS::DOM::Rule::Charset(3pm)

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

The Method

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

Version

       Version 0.17

See Also