monolithic-overflow-020-print-ref.html (1094B)
1 <!DOCTYPE html> 2 <link rel="author" title="Morten Stenshorne" href="mailto:mstensho@chromium.org"> 3 <style> 4 :root { 5 print-color-adjust: exact; 6 } 7 body { margin: 0; } 8 </style> 9 <div style="float:right; width:20%; border:3px solid;"> 10 <div style="width:50%; height:calc(100vh - 3px); background:brown;"></div> 11 <div style="width:50%; height:100vh; background:blue;"></div> 12 <div style="width:50%; height:50vh; background:cyan;"></div> 13 </div> 14 <div style="background:yellow;"> 15 <div style="width:20%; height:225vh; background:hotpink;"></div> 16 <div style="height:75vh;"></div> 17 </div> 18 This text should start on the fourth page. The first three pages should have a 19 yellow background. On the left hand side there should be a hotpink rectangle, 20 starting at the beginning on the first page, and ending 25% from the top of the 21 third page. On the right hand side there should a figure with a black border. It 22 should end around the middle of the third page. Inside there should be a brown 23 rectangle on the first page, a blue rectangle on the second page, and a cyan 24 rectangle on the third page.