wpt / css / css-page / basic-pagination-005-print.html

Status: PASS | Duration: 10ms | Subtests: 1/1 | Open test on wpt.live | Open ref on wpt.live | wpt.fyi

/css/css-page/basic-pagination-005-print.html

<!DOCTYPE html>
<link rel="author" title="Morten Stenshorne" href="mailto:mstensho@chromium.org">
<link rel="help" href="https://drafts.csswg.org/css-page-3/">
<meta name="assert" content="Test that multiple pages are supported, and that the implementation doesn't just output the last page.">
<link rel="mismatch" href="basic-pagination-004-print-ref.html">
<!-- See   ^^^^^^^^  (mismatch is expected) -->
<style>
  @page {
    size: 293px;
    margin: 5px;
  }
  :root {
    print-color-adjust: exact;
  }
  body {
    margin: 0;
    background: yellow;
  }
  div {
    min-height: 10px;
    break-after: page;
  }
</style>
<div></div>
<div>Page</div>

/css/css-page/basic-pagination-004-print-ref.html

<!DOCTYPE html>
<link rel="author" title="Morten Stenshorne" href="mailto:mstensho@chromium.org">
<style>
  @page {
    size: 293px;
    margin: 5px;
  }
  :root {
    print-color-adjust: exact;
  }
  body {
    margin: 0;
    background: yellow;
  }
</style>
<div>Page</div>