tor-browser

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

spellcheck-input-ref.html (619B)


      1 <!DOCTYPE html>
      2 <html class="reftest-wait">
      3 <body>
      4    <input type="text" value="blahblahblah" spellcheck="true">
      5    <script>
      6      var i = document.getElementsByTagName("input")[0];
      7      i.focus(); // init the editor
      8      i.blur();  // we actually don't need the focus
      9 
     10      // Try to ensure the input element is repainted.
     11      let rAFCounter = 0;
     12      requestIdleCallback(function rAF() {
     13        if (rAFCounter < 10) {
     14          ++rAFCounter;
     15          requestAnimationFrame(rAF);
     16        } else {
     17          document.documentElement.removeAttribute("class");
     18        }
     19      });
     20    </script>
     21 </body>
     22 </html>