tor-browser

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

dynamic-height-within-table-cell.html (863B)


      1 <!DOCTYPE>
      2 <html class="test-wait">
      3  <head>
      4    <title>Dynamic height within table cell</title>
      5    <meta charset="utf-8"/>
      6    <link rel="author" title="Frédéric Wang" href="mailto:fwang@igalia.com">
      7    <link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1254572">
      8    <style>
      9      #cell {
     10          position: relative;
     11      }
     12      #elementToResize {
     13          position: absolute;
     14          height: 50px;
     15      }
     16    </style>
     17  </head>
     18  <body>
     19    <math>
     20      <mtd id="cell">
     21        <mrow id="elementToResize"></mrow>
     22      </mtd>
     23    </math>
     24    <script>
     25      window.addEventListener("load", () => {
     26          window.requestAnimationFrame(() => {
     27              elementToResize.style.height = "0px";
     28              document.documentElement.classList.remove('test-wait');
     29          });
     30      });
     31    </script>
     32  </body>
     33 </html>