Chapter 13 - Paged media - 13.2 Page boxes: the @page rule
Go to the relevant page of the specification.
- at-page-rule-001 (invalid, paged)
Ignoring at-rules inside declaration blocks
At-rules inside @page blocks are parsed as invalid at-rule statements.
- page-container-000 (paged)
Paged Media root container
For a single-page document, the containing box for the root element is the page area.
- page-container-001 (paged)
paged media abspos containing block
For a single-page document, the containing box for positioned content with no positioned ancestor is the page area.
- page-container-002 (paged)
paged media root percent height
A percentage height on the root element is relative to the page area height.
- page-container-003 (paged)
paged media position fixed
Elements with 'position: fixed' are positioned relative to the page area and are rendered on every page of the printed document.
- page-container-004 (may, paged)
Paged Media root container (float)
The root element when floated abuts the left or right edge of the page area.
- page-container-005 (image, paged)
The page area includes the boxes laid out on that page. The content of the document is flowed into the page area of one or more page sheets.
- page-container-006 (paged)
Paged media - percent on root
A percentage width on the root element is relative to the page area width.
- page-container-010 (paged)
Paged Media Height (percent)
For HTML documents in paged media, when the HTML and BODY elements have heights of 100%, a percentage height on a child of BODY is relative to the page area height.
- page-grammar-001 (paged)
@page grammar: white space allowed around pseudo
White space before and after a pseudo-page selector is allowed.
- page-grammar-002 (paged)
@page grammar: white space not required around pseudo
White space before and after a pseudo-page selector is not required.
- page-selectors-001 (paged)
page selector is optional in @page rules
An @page rule consists of the keyword '@page', followed by an optional page selector, followed by a block of declarations.