transform-024-print.html (1302B)
1 <!DOCTYPE html> 2 <link rel="author" title="Morten Stenshorne" href="mailto:mstensho@chromium.org"> 3 <link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1371426"> 4 <link rel="match" href="transform-024-print-ref.html"> 5 <style> 6 :root { 7 print-color-adjust: exact; 8 } 9 body { margin: 0; } 10 </style> 11 <div style="position:relative; z-index:1; height:100vh;"> 12 There should be five pages. Each page should have a unique background - but no 13 red should be seen. 14 </div> 15 <!-- This tests that the transform on the container is applied to all the 16 absolutely positioned descendants, and also that the transform origin is 17 correct. --> 18 <div style="transform:rotate(180deg); height:250vh; background:red;"> 19 <div style="position:absolute; width:100%; transform:translateY(-100vh); top:-100vh; height:100vh; background:yellow;"></div> 20 <div style="position:absolute; width:100%; height:100vh; background:pink;"></div> 21 <div style="position:absolute; width:100%; top:100vh; height:100vh; background:cyan;"></div> 22 <div style="position:absolute; width:100%; transform:translateY(-50vh); top:200vh; height:100vh; background:papayawhip;"></div> 23 <div style="position:absolute; width:100%; transform:translateY(-100vh); top:300vh; height:100vh; background:olive;"></div> 24 </div>