tor-browser

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

multicol-000.html (717B)


      1 <!DOCTYPE html>
      2 <link rel="help" href="https://wicg.github.io/layout-instability/" />
      3 <script src="/resources/testharness.js"></script>
      4 <script src="/resources/testharnessreport.js"></script>
      5 <script src="resources/util.js"></script>
      6 <div id="multicol" style="position:relative; columns:40; width:500px; column-gap:0;">
      7  <div style="height:4000px; background:black;"></div>
      8 </div>
      9 <script>
     10 
     11 promise_test(async () => {
     12  const watcher = new ScoreWatcher;
     13  await waitForAnimationFrames(2);
     14 
     15  multicol.style.top = '100px';
     16  const expectedScore = computeExpectedScore(500 * (100 + 100), 100);
     17 
     18  await watcher.promise;
     19  assert_equals(watcher.score, expectedScore);
     20 }, 'Move balanced multicol container');
     21 
     22 </script>