anchor-position-005.html (896B)
1 <!DOCTYPE html> 2 <title>Anchor in RTL</title> 3 <link rel="author" title="Morten Stenshorne" href="mailto:mstensho@chromium.org"> 4 <link rel="help" href="https://issues.chromium.org/issues/454646303"> 5 <style> 6 .anchored { 7 position: absolute; 8 inset-inline-start: anchor(self-start); 9 inset-block-start: anchor(self-end); 10 width: 100px; 11 height: 50px; 12 background: green; 13 } 14 .ib { 15 display: inline-block; 16 width: 100px; 17 height: 50px; 18 } 19 </style> 20 <link rel="match" href="../reference/ref-filled-green-100px-square.xht"> 21 <p>Test passes if there is a filled green square and <strong>no red</strong>.</p> 22 <div style="width:100px; height:100px; background:red;"> 23 <div dir="rtl" style="width:200px;"> 24 <div class="ib"></div><div class="ib" style="anchor-name:--a; background:green;"></div> 25 <div class="anchored" style="position-anchor:--a;"></div> 26 </div> 27 </div>