transform-006.html (1323B)
1 <!DOCTYPE html> 2 <title>Anchor-positioned element with transformed anchor inside multicol</title> 3 <link rel="author" title="Morten Stenshorne" href="mailto:mstensho@chromium.org"> 4 <link rel="help" href="https://drafts.csswg.org/css-anchor-position-1/#determining-position"> 5 <style> 6 .anchored { 7 position: absolute; 8 position-anchor: --a; 9 background: green; 10 } 11 </style> 12 <link rel="match" href="../reference/ref-filled-green-100px-square.xht"> 13 <p>Test passes if there is a filled green square and <strong>no red</strong>.</p> 14 <div style="position:relative; display:flow-root; width:100px; height:100px; background:red;"> 15 <div style="columns:5; column-gap:20px; margin-top:25px; column-fill:auto; height:40px;"> 16 <div style="height:70px;"></div> 17 <div style="height:20px; transform:scale(2); anchor-name:--a; background:lime;"></div> 18 </div> 19 <div class="anchored" style="position-area:left span-all; width:22px; height:100%;"></div> 20 <div class="anchored" style="position-area:right span-all; width:46px; height:100%;"></div> 21 <div class="anchored" style="position-area:top center; width:32px; height:20px;"></div> 22 <div class="anchored" style="position-area:bottom center; width:32px; height:30px;"></div> 23 <div class="anchored" style="position-area:center; width:32px; height:50px;"></div> 24 </div>