tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

transform-008.html (1589B)


      1 <!DOCTYPE html>
      2 <html class="reftest-wait">
      3  <title>Ancestor of anchor with changing transform</title>
      4  <link rel="author" title="Morten Stenshorne" href="mailto:mstensho@chromium.org">
      5  <link rel="help" href="https://drafts.csswg.org/css-anchor-position-1/#determining-position">
      6  <style>
      7    .anchored {
      8      position: absolute;
      9      position-anchor: --a;
     10      background: green;
     11    }
     12    #anchor {
     13      width: 20px;
     14      height: 20px;
     15      margin-left: 10px;
     16      anchor-name: --a;
     17      background: green;
     18    }
     19    #transformed {
     20      transform: scale(3);
     21      transform-origin: top left;
     22    }
     23  </style>
     24  <link rel="match" href="../reference/ref-filled-green-100px-square.xht">
     25  <p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
     26  <div style="position:relative; width:100px; height:100px; background:red;">
     27    <div style="height:30px;"></div>
     28    <div id="transformed">
     29      <div id="anchor"></div>
     30    </div>
     31    <div class="anchored" style="position-area:left span-all; width:100%; height:100px;"></div>
     32    <div class="anchored" style="position-area:right span-all; width:40px; height:100%;"></div>
     33    <div class="anchored" style="position-area:top center; width:40px; height:100%;"></div>
     34    <div class="anchored" style="position-area:bottom center; width:100%; height:100%;"></div>
     35  </div>
     36  <script>
     37    requestAnimationFrame(()=> {
     38      requestAnimationFrame(()=> {
     39        transformed.style.transform = "scale(2)";
     40        document.documentElement.classList.remove("reftest-wait");
     41      });
     42    });
     43  </script>
     44 </html>