Status: FAIL | Duration: 16ms | Subtests: 0/1 | Open test on wpt.live | Open ref on wpt.live | wpt.fyi
/css/css-page/page-background-003-print.html
<!DOCTYPE html> <link rel="author" title="Morten Stenshorne" href="mailto:mstensho@chromium.org"> <link rel="help" href="http://crbug.com/351332645"> <link rel="match" href="page-background-003-print-ref.html"> <style> :root { print-color-adjust: exact; } @page { size: 500px 250px; margin: 0; } body { margin-left: 100px; background: url(support/cat.png) repeat-y; } </style> There should be two and a half cats on this page. <div style="break-before:page;"> There should be two and a half cats on this page, too (and the ears of another cat barely visible at the bottom). The previous page ends with a cat's head, and this page starts with a cat's body. </div>
/css/css-page/page-background-003-print-ref.html
<!DOCTYPE html> <link rel="author" title="Morten Stenshorne" href="mailto:mstensho@chromium.org"> <style> @page { size: 500px 250px; margin: 0; } body { margin-left: 100px; } </style> <div style="position:absolute; z-index:-1; top:0; left:0; overflow:clip; contain:size; width:100px; height:500px;"> <img src="support/cat.png" style="display:block;"> <img src="support/cat.png" style="display:block;"> <img src="support/cat.png" style="display:block;"> <img src="support/cat.png" style="display:block;"> <img src="support/cat.png" style="display:block;"> <img src="support/cat.png" style="display:block;"> </div> There should be two and a half cats on this page. <div style="break-before:page;"> There should be two and a half cats on this page, too (and the ears of another cat barely visible at the bottom). The previous page ends with a cat's head, and this page starts with a cat's body. </div>