Name

CSSPageRule — an @page rule in a CSS style sheet

Availability

DOM Level 2 CSS

Inherits from/Overrides

CSSRule CSSPageRule

Properties

String selectorText

The page selector text for this rule. Setting this property to an illegal value throws a DOMException with a code of SYNTAX_ERR. Setting this property when the rule is read-only throws a DOMException with a code of NO_MODIFICATION_ALLOWED_ERR.

readonly CSSStyleDeclaration style

The set of styles for this rule.

Description

This interface represents an @page rule in a CSS style sheet, which is typically used to specify the page layout for printing. Consult a CSS reference for details.

Get JavaScript: The Definitive Guide, Fourth Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.