tor-browser

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

foreignObject-dynamic-line-height-01.html (500B)


      1 <!DOCTYPE html>
      2 <html class="reftest-wait">
      3  <svg id="box">
      4    <foreignObject width="100" height="100">
      5      This is long text that wraps.
      6    </foreignObject>
      7  </svg>
      8  <script>
      9    document.addEventListener("MozReftestInvalidate", doTest, false);
     10    setTimeout(doTest, 4000); // fallback for running outside reftest
     11 
     12    function doTest() {
     13      document.querySelector("foreignObject").style.lineHeight = 3;
     14      document.documentElement.removeAttribute('class');
     15    }
     16  </script>
     17 </htmml>