---
name: "CSS::DOM::Rule::Page"
section: "3pm"
platform: "linux"
package: "libcss-dom-perl"
version: "0.17-3"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/CSS::DOM::Rule::Page"
---

# CSS::DOM::Rule::Page(3pm)

CSS @page rule class for CSS::DOM

## NAME

CSS::DOM::Rule::Page - CSS @page rule class for CSS::DOM

## VERSION

Version 0.17

## SYNOPSIS

```
  use CSS::DOM;
  my $page_rule = CSS::DOM->parse(
      '@page :first { stuff: other stuff }'
  )->cssRules->[0];
  $page_rule->selectorText; # '@page :first'
  $page_rule->style;        # a CSS::DOM::Style object
  $page_rule->style->stuff; # 'other stuff'
```

## DESCRIPTION

This module implements CSS `@page` rules for CSS::DOM. It inherits  from CSS::DOM::Rule and implements the CSSPageRule 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.

## SEE ALSO

CSS::DOM

CSS::DOM::Style

CSS::DOM::Rule
