Status: PASS | Duration: 11ms | Subtests: 1/1 | Open test on wpt.live | Open ref on wpt.live | wpt.fyi
/css/css-grid/grid-fragmentation-between-rows-001-print.tentative.html
<!DOCTYPE html> <link rel="author" title="Psychpsyo" href="mailto:psychpsyo@gmail.com"> <link rel="help" href="https://www.w3.org/TR/css-grid-1/#pagination"> <link rel="match" href="./grid-fragmentation-between-rows-001-print-ref.tentative.html"> <style> :root { print-color-adjust: exact; } </style> <div style="height: 40vh"> Test passes if there is two purple boxes on both page 1 and page 2 in print mode. (Ctrl+P, with "print backgrounds" enabled) </div> <div style="display: grid; grid-template-columns: 1fr 1fr;"> <div style="contain:size; height:40vh;"> <div style="height:40vh; width: 20vw; background:purple;"></div> </div> <div style="contain:size; height:40vh;"> <div style="height:40vh; width: 20vw; background:purple;"></div> </div> <div style="contain:size; height:40vh;"> <div style="height:40vh; width: 20vw; background:purple;"></div> </div> <div style="contain:size; height:40vh;"> <div style="height:40vh; width: 20vw; background:purple;"></div> </div> </div>
/css/css-grid/grid-fragmentation-between-rows-001-print-ref.tentative.html
<!DOCTYPE html> <style> :root { print-color-adjust: exact; } </style> <div style="height:40vh"> Test passes if there is two purple boxes on both page 1 and page 2 in print mode. (Ctrl+P, with "print backgrounds" enabled) </div> <div style="display:grid; grid-template-columns:1fr 1fr;"> <div style="contain:size; height:40vh;"> <div style="height:40vh; width: 20vw; background:purple;"></div> </div> <div style="contain:size; height:40vh;"> <div style="height:40vh; width: 20vw; background:purple;"></div> </div> </div> <div style="display:grid; grid-template-columns:1fr 1fr; break-before:page;"> <div style="contain:size; height:40vh;"> <div style="height:40vh; width: 20vw; background:purple;"></div> </div> <div style="contain:size; height:40vh;"> <div style="height:40vh; width: 20vw; background:purple;"></div> </div> </div>