tor-browser

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

transform-above-perspective-dynamic.html (754B)


      1 <!DOCTYPE html>
      2 <title>Layout Instability: addition of transform above perspective</title>
      3 <link rel="help" href="https://wicg.github.io/layout-instability/" />
      4 <div id=target2>
      5  <div id=perspective style="perspective: 1000px;">
      6    <div id=target>Test</div>
      7  </div>
      8 </div>
      9 <script src="/resources/testharness.js"></script>
     10 <script src="/resources/testharnessreport.js"></script>
     11 <script src="resources/util.js"></script>
     12 <script>
     13 promise_test(async () => {
     14  const watcher = new ScoreWatcher;
     15  // Wait for the initial render to complete.
     16  await waitForAnimationFrames(2);
     17 
     18  target2.style.transform = 'translateX(0px)';
     19  await waitForAnimationFrames(1);
     20 
     21  assert_equals(watcher.score, 0);
     22 }, 'addition of transform above perspective');
     23 
     24 </script>