13.2.2 Page selectors: selecting left, right, and first pages

Chapter 13 - Paged media - 13.2.2 Page selectors: selecting left, right, and first pages

Go to the relevant page of the specification.

first-page-selectors-001 (paged)
Page Selectors - First Page in LTR
The first page of a left-to-right document is a :right page.
first-page-selectors-002 (paged)
Page Selectors - First Page in RTL
The first page of a right-to-left document is a :left page.
first-page-selectors-003 (may, paged)
Page Selectors - First Page in LTR Forced :left
The first page of a left-to-right document can be forced as :left by inserting a page break.
first-page-selectors-004 (may, paged)
Page Selectors - First Page in RTL Forced :right
The first page of a right-to-left document can be forced as :right by inserting a page break.
page-props-100-a (paged)
Unqualified Page Contexts (first, right)
A margin declaration within a page context which is not qualified by a pseudo-class (or, for css3, a named page identifier) sets the margins for every page of the document which doesn't match a page context with a :first, :right, or :left pseudoclass (or, for css3, a named page identifier).
page-props-100-b (paged)
Unqualified Page Contexts (first, left)
A margin declaration within a page context which is not qualified by a pseudo-class (or, for css3, a named page identifier) sets the margins for every page of the document which doesn't match a page context with a :first, :right, or :left pseudoclass (or, for css3, a named page identifier).
page-props-101 (paged)
Right and Left Pages (page area equal)
The right and left pages of a document may use differing margin styles that yield equivalent page area heights.
page-props-102 (paged)
Right and Left Pages (page area equal)
The right and left pages of a document may use differing margin styles that yield different page area widths, but the UA may adjust the margins such that the page area widths are the same.
page-props-103 (paged)
Right and Left Pages (page area equal)
The right and left pages of a document may use differing margin styles that yield different page area heights.
page-selectors-002 (paged)
Page Selectors: first, right, and left pages
In CSS 2.1, page selectors may designate the first page, all left pages, or all right pages.
page-selectors-003 (paged)
Page cascade (right/left)
Properties specified in a :left or :right @page rule override those specified in an @page rule that has no pseudo-class specified.
page-selectors-004 (paged)
Page cascade (first trumps right)
Properties specified in a :first @page context override those specified in :right @page contexts.
page-selectors-006 (paged)
Page cascade (first trumps no pseudo-class)
Properties specified in a :first @page rule override those specified in an @page rule with no pseudo-class specified.