monolithic-overflow-print.html (1012B)
1 <!DOCTYPE html> 2 <link rel="author" title="Psychpsyo" href="mailto:psychpsyo@gmail.com"> 3 <link rel="help" href="https://issues.chromium.org/issues/327643792"> 4 <link rel="match" href="./monolithic-overflow-print-ref.html"> 5 <style> 6 :root { 7 print-color-adjust: exact; 8 } 9 </style> 10 <p style="height: 50vh">Test passes if there is two purple rectangles at the start of both page 2 and 3 when printing the page (Ctrl+P, with "print backgrounds" enabled).</p> 11 <div style="display:grid; grid-template-columns:1fr 1fr;"> 12 <div style="contain:size; height:75vh;"> 13 <div style="height:75vh; width: 100px; background:purple;"></div> 14 </div> 15 <div style="contain:size; height:75vh;"> 16 <div style="height:75vh; width: 100px; background:purple;"></div> 17 </div> 18 <div style="contain:size; height:75vh;"> 19 <div style="height:75vh; width: 100px; background:purple;"></div> 20 </div> 21 <div style="contain:size; height:75vh;"> 22 <div style="height:75vh; width: 100px; background:purple;"></div> 23 </div> 24 </div>