anchor-position-multicol-008.html (1511B)
1 <!DOCTYPE html> 2 <title>anchor() to two edges inside vertical-rl 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/#anchor-pos"> 5 <style> 6 .query_elm { 7 position: absolute; 8 left: anchor(--a1 left); 9 top: anchor(--a1 top); 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="width:100px; height:100px; background:red;"> 15 <div style="columns:1; inline-size:100px; column-fill:auto; border-block-end:20px solid green; block-size:70px; writing-mode:vertical-rl;"> 16 <div style="block-size:30px;"></div> 17 <div style="position:relative; inline-size:100px; block-size:100px;"> 18 <div style="block-size:20px;"></div> 19 <div style="anchor-name:--a1; inline-size:50px; block-size:70px;"></div> 20 <!-- The containing block of this anchored element is inside the 21 fragmentation context. --> 22 <div class="query_elm" style="width:100%; height:100%;"> 23 <div style="block-size:50px; background:green;"></div> 24 </div> 25 </div> 26 <!-- The containing block of this anchored element is *not* inside the 27 fragmentation context. Fill what's left. --> 28 <div class="query_elm" style="width:80px; height:100px;"> 29 <div style="block-size:30px; inline-size:100px; background:green;"></div> 30 </div> 31 </div> 32 </div>