Status: FAIL | Duration: 44ms | Subtests: 0/1 | Open test on wpt.live | Open ref on wpt.live | wpt.fyi
/css/css-page/page-size-009-print.html
<!DOCTYPE html> <link rel="author" title="Morten Stenshorne" href="mailto:mstensho@chromium.org"> <link rel="help" href="https://www.w3.org/TR/css-page-3/#at-page-rule"> <link rel="help" href="https://www.w3.org/TR/css-page-3/#using-named-pages"> <link rel="match" href="page-size-009-print-ref.html"> <style> @page { size: 300px 400px; margin: 0; } @page smaller { size: 200px; } :root { print-color-adjust: exact; } body { margin: 0; } </style> <div style="page:smaller;"> There should be a 200x200 square on the next page. </div> <div style="width:100vw; height:100vh; background:green;"></div>
/css/css-page/page-size-009-print-ref.html
<!DOCTYPE html> <link rel="author" title="Morten Stenshorne" href="mailto:mstensho@chromium.org"> <style> @page { size: 300px 400px; margin: 0; } @page :first { size: 200px; } :root { print-color-adjust: exact; } body { margin: 0; } </style> There should be a 200x200 square on the next page. <div style="break-before:page; width:200px; height:200px; background:green;"></div>