CSS::DOM::Rule::Style(3pm)

CSS::DOM::Rule::Style3pm

Css style rule class for css::dom

Usage

  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

Overview

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.

Releases

7 releases since Debian 7 (Wheezy); the text changed 5 times.

  1. 7
  2. 8
  3. 9
  4. 10–11
  5. 12
  6. 13

From libcss-dom-perl 0.17-3 in Debian 13 (Trixie). Parsed by carta from the page's man source.