CSS Paged Media Module Level 3 CR Test Suite

Page Breaks (33 tests)

Test Refs Flags Info
+ 9 Page Breaks
allowed-page-breaks-001a Paged allowed page breaks between blocks
  • Unforced breaking in the vertical margin between sibling block boxes is allowed only if the 'page-break-after' and 'page-break-before' properties of all the elements generating boxes that meet at this margin are 'auto' and the common ancestors of all the elements do not have a 'page-break-inside' value of 'avoid'.
allowed-page-breaks-001b OptionalPaged allowed page breaks between table rows
  • Unforced breaking in the vertical margin between sibling table rows is allowed only if the 'page-break-after' and 'page-break-before' properties of all the elements generating boxes that meet at this margin are 'auto' and the common ancestors of all the elements do not have a 'page-break-inside' value of 'avoid'.
allowed-page-breaks-001c OptionalPaged allowed page breaks between blocks within table cells
  • Unforced breaking in the vertical margin between sibling block boxes is allowed only if the 'page-break-after' and 'page-break-before' properties of all the elements generating boxes that meet at this margin are 'auto' and the common ancestors of all the elements do not have a 'page-break-inside' value of 'avoid'.
page-break-margins-003 Paged page break margin handling
  • When a page break occurs in the vertical margin between sibling block boxes, the used values of the adjoining 'margin-bottom' and 'margin-top' properties are set to '0'.
page-break-margins-004 Paged page break margin handling
  • When a page break occurs in the vertical margin between sibling block boxes, the used values of the adjoining 'margin-top' property is set to '0'.
page-breaks-100 Paged Page breaks: clearing bottom margin
  • When an element would span a page break solely to satisfy a descendant's bottom margin, that margin is instead truncated and the element does not span pages.
page-breaks-101 Paged Page Breaks and Bottom Margin (with bg/border)
  • Page breaks are not allowed between the last child of a block and its parent.
orphans-001 Paged breaks inside elements: orphans initial value
  • The initial value of the 'orphans' property is 2.
orphans-004a InvalidPaged orphans property syntax - integer
  • The syntax of the 'orphans' property is integer.
orphans-004b InvalidPaged orphans property syntax - one
  • The 'orphans' property accepts the integer one.
widows-004a Paged widows property syntax - positive integer
  • The syntax of the 'widows' property is positive integer.
widows-004b Paged widows property syntax - one
  • The 'widows' property accepts the integer one.
page-break-after-002 Paged page-break-after applies to blocks
  • The 'page-break-after' property must be applied to block-level elements and may be applied to other elements.
page-break-after-005 Paged page-break-after: initial value
  • The initial value of the 'page-break-after' property is 'auto'.
page-break-after-006 page-break-after applies to paged media
  • The 'page-break-after' property applies to paged media only
page-break-after-007 Paged page-break-after: auto
  • The 'auto' value of the 'page-break-after' property neither forces nor forbids a page break after the box.
page-break-after-008 Paged page-break-after: right
  • The 'right' value of the 'page-break-after' property forces one or two page breaks before the box so that the page after the break is formatted as a right page
page-break-after-009 Paged page-break-after: avoid
  • The 'avoid' value of the 'page-break-after' property inhibits a page break after the element when possible.
page-break-after-010 Paged page-break-after: left
  • The 'left' value of the 'page-break-after' property forces one or two page breaks before the box so that the page after the break is formatted as a left page
page-break-before-000 Paged page-break-before: always
  • The 'always' value of the 'page-break-before' property forces a page break before the box.
page-break-before-003 Paged page-break-before: left
  • - The 'left' value of the 'page-break-before' property forces one or two page breaks before the box so that the page after the break is formatted as a left page.
page-break-before-004 Paged page-break-before (no inherit)
  • The 'page-break-before' property is not inherited.
page-break-before-005 Paged page-break-before: right
  • - The 'right' value of the 'page-break-before' property forces one or two page breaks before the box so that the page after the break is formatted as a right page.
page-break-before-006 InvalidPaged page-break-before (invalid syntax)
  • The syntax of the 'page-break-before' property is auto | always | avoid | left | right.
page-break-before-007 Paged page-break-before initial value
  • The initial value of the 'page-break-before' property is 'auto', which neither forces nor forbids a page break before boxes.
page-break-before-007-b Paged page-break-before explicit auto test
  • The initial value of the 'page-break-before' property is 'auto'.
page-break-before-008 Paged page-break-before paged media
  • The 'page-break-before' property applies to paged media only
page-break-before-009 Paged page-break-before avoid
  • The 'avoid' value of the 'page-break-before' property prevents a page break before the element when possible
page-break-before-010 Paged page-break-before :auto
  • The 'auto' value of the 'page-break-before' property neither forces nor forbids a page break before the box.
page-break-before-011 Paged page-break-before initial value
  • The initial value of the 'page-break-before' property is 'auto', which neither forces nor forbids a page break before boxes.
page-break-before-020 Paged Paged media - page-break-before on floats
  • The 'page-break-before' property applies to floated block-level elements in normal flow.
page-break-inside-001 Paged page-break-inside: avoid (basic)
  • The 'avoid' value of the 'page-break-inside' property causes the UA to avoid breaking inside the element.
page-break-inside-004 Paged @page page-break-inside:auto
  • The initial value of the 'page-break-inside' property is 'auto'.
+ 9.1 Using named pages: ‘page’