Status: FAIL | Duration: 12ms | Subtests: 0/1 | Open test on wpt.live | Open ref on wpt.live | wpt.fyi
/css/css-page/margin-boxes/content-009-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/#page-based-counters"> <meta name="assert" content="Test counter(page), increment by 3 on left pages, nothing on right pages"> <link rel="match" href="content-009-print-ref.html"> <style> @page { margin: 4em; @bottom-center { text-align: left; vertical-align: top; content: counter(page); } } @page :left { counter-increment: page 3; } @page :right { counter-increment: page 0; } @page :first { @top-center { text-align: left; vertical-align: top; content: "There are " counter(pages) " pages"; } } body { margin: 0; } </style> Page <div style="page:something;"> Another page </div> <div> Yet another page </div> <div style="break-before:page;"> Last page </div>
/css/css-page/margin-boxes/content-009-print-ref.html
<!DOCTYPE html> <link rel="author" title="Morten Stenshorne" href="mailto:mstensho@chromium.org"> <style> @page { margin: 0; } body { margin: 0; } .page { display: grid; grid-template-rows: 4em auto 4em; height: 100vh; margin: 0 4em; } </style> <div class="page"> <div>There are 4 pages</div> <div> Page </div> <div>0</div> </div> <div class="page"> <div></div> <div>Another page</div> <div>3</div> </div> <div class="page"> <div></div> <div>Yet another page</div> <div>3</div> </div> <div class="page"> <div></div> <div>Last page</div> <div>6</div> </div>