transform-009.html (850B)
1 <!DOCTYPE html> 2 <link rel="author" title="Morten Stenshorne" href="mailto:mstensho@chromium.org"> 3 <link rel="help" href="https://www.w3.org/TR/css-break-3/#transforms"> 4 <link rel="match" href="transform-009-ref.html"> 5 <style> 6 .relpos { 7 position: relative; 8 width: 30px; 9 top: 50px; 10 left: 50px; 11 } 12 .transform { 13 transform: rotate(45deg); 14 height: 150px; 15 } 16 .abspos { 17 position: absolute; 18 width: 100%; 19 height: 500px; 20 top: -200px; 21 background: green; 22 } 23 </style> 24 <p>Below there should be six rotated green rectangles (not all with the same 25 size).</p> 26 <div style="columns:5; column-gap:0; column-fill:auto; width:500px; height:100px;"> 27 <div style="height:250px;"></div> 28 <div class="relpos"> 29 <div class="transform"> 30 <div class="abspos"></div> 31 </div> 32 </div> 33 </div>