Status: FAIL | Duration: 13ms | Subtests: 0/1 | Open test on wpt.live | Open ref on wpt.live | wpt.fyi
/css/css-page/margin-boxes/content-013-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="Manipulating the 'pages' counter should have no effect."> <link rel="match" href="content-013-print-ref.html"> <style> html { counter-reset: pages 10; } @page { margin: 4em; counter-increment: pages 2; @top-center { text-align: left; vertical-align: top; counter-increment: pages; content: counters(pages, "."); } @bottom-center { text-align: left; vertical-align: top; counter-reset: pages 2; counter-increment: pages; content: counters(pages, "."); } } body { margin: 0; } </style> The number 4 should be seen in the header and footer, on every 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-013-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>4</div> <div> The number 4 should be seen in the header and footer, on every page. </div> <div>4</div> </div> <div class="page"> <div>4</div> <div>Another page</div> <div>4</div> </div> <div class="page"> <div>4</div> <div>Yet another page</div> <div>4</div> </div> <div class="page"> <div>4</div> <div>Last page</div> <div>4</div> </div>