anchor-position-multicol-012.html (937B)
1 <!DOCTYPE html> 2 <title>Anchors with same name, one crossing column boundaries.</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/#position-anchor"> 5 <link rel="match" href="../reference/ref-filled-green-100px-square.xht"> 6 <p>Test passes if there is a filled green square and <strong>no red</strong>.</p> 7 <div style="columns:2; column-fill:auto; gap:0; width:100px; height:100px; background:red;"> 8 <div style="position:relative;"> 9 <div style="position:relative;"> 10 <div style="anchor-name:--a1; margin-left:10px; height:20px;"></div> 11 <div style="anchor-name:--a1; position:absolute; left:0px; top:30px; right:0; height:170px;"></div> 12 </div> 13 <div style="position:absolute; left:anchor(--a1 left); top:anchor(--a1 top); width:50px; height:200px; margin-top:-30px; background:green;"></div> 14 </div> 15 </div>