CSS Paged Media Module Level 3 CR Test Suite

Page Selectors and the Page Context (29 tests)

Test Refs Flags Info
+ 5 Page Selectors and the Page Context
+ 5.1 The @page Rule
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-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.
at-page-rule-002-a Paged @page margins on top and right using percentages
  • A percentage right margin in the @page context applies to the page box and is relative to the width of the page box. A percentage top margin in the @page context applies to the page box and is relative to the height of the page box.
at-page-rule-002-b Paged @page margins shorthand using fixed physical units
  • A margin declaration within the @page context applies to the page box.
at-page-rule-002-c Paged Page Margins: bottom and left (percent)
  • A margin declaration within the @page context applies to the page box.
  • Percentage values on right and left margins are relative to the page box width.
  • Percentage values on top and bottom margins are relative to the page box height.
page-borders-000 Paged @page border shorthand (absolute units)
  • A border declaration within the @page context applies to the page box.
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 OptionalPaged Paged Media root container (float)
  • The root element when floated abuts the left or right edge of the page area.
page-container-005 BitmapsPaged Paged content
  • 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-margin-000 Paged @page margins shorthand using fixed physical units
  • A margin declaration within the @page context applies to the page box.
page-margin-001 Paged @page margins on top and right using percentages
  • A percentage right margin in the @page context applies to the page box and is relative to the width of the page box. A percentage top margin in the @page context applies to the page box and is relative to the height of the page box.
page-margin-002 Paged @page margins on bottom and left using percentages
  • A margin declaration within the @page context applies to the page box.
page-margin-003 Paged @page margin shorthand using ems
  • A margin declaration within the @page context applies to the page box.
  • A margin expressed in ems uses the page context's font.
page-properties-000 Paged @page width and height
  • The 'width' and 'height' properties do not apply to a page box.
+ 5.2 Page selectors
+ 5.2.1 Spread pseudo-classes: ‘:left’, ‘:right’
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-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.
+ 5.2.2 First-page pseudo-class: ‘:first’
+ 5.2.3 Blank-page pseudo-class: ‘:blank’
+ 5.3 @page rule grammar
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-name-000 InvalidPaged Page Selector Grammar - @page auto
+ 5.4 Cascading in the page context
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.