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::Style - CSS style rule class for CSS::DOM

Description

       This module implements CSS style rules for CSS::DOM. It inherits from CSS::DOM::Rule and implements the
       CSSStyleRule DOM interface.

Methods

       selectorText
           Returns a string representing the selector(s). Pass an argument to set it.

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

Name

       CSS::DOM::Rule::Style - CSS style 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::Style(3pm)

Synopsis

         use CSS::DOM;
         my $ruleset = CSS::DOM->parse(
             'p:firstline, h3 { font-weight: bold }'
         )->cssRules->[0];

         $ruleset->selectorText;      # 'p:firstline, h3'
         $ruleset->style;             # a CSS::DOM::Style object
         $ruleset->style->fontWeight; # 'bold'

Version

       Version 0.17

See Also