body-background-vlr-print.html (988B)
1 <!DOCTYPE html> 2 <link rel="help" href="https://drafts.csswg.org/css-page-3/"> 3 <meta name="assert" content="Body's background is fragmented correctly in vertical-lr writing mode."> 4 <link rel="match" href="body-background-vlr-print-ref.html"> 5 <style> 6 :root { 7 print-color-adjust: exact; 8 writing-mode: vertical-lr; 9 } 10 body { 11 margin: 0; 12 background: linear-gradient(90deg, lightgray 0%, lightgray 50%, white 50%, white 100%) 13 } 14 @page { 15 size: 800px 600px; 16 margin: 0; 17 } 18 </style> 19 <p style="writing-mode:horizontal-tb; position:absolute; right:20px; top:0; width:160px;"> 20 There should be a top-left-aligned blue box on the first page, and a 21 top-aligned hotpink box on the second page. 22 The background of the first page is lightgray, and the background of the 23 second page is white. 24 </p> 25 <div style="width:600px; height:100px; break-inside:avoid; background:blue;"></div> 26 <div style="width:800px; height:100px; break-inside:avoid; background:hotpink;"></div>