tor-browser

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

bug1611661.html (736B)


      1 <!doctype html>
      2 <html class="reftest-wait">
      3 <title>Can edit input type=number with a user-select: none ancestor</title>
      4 <script src="/tests/SimpleTest/EventUtils.js"></script>
      5 <script src="/tests/SimpleTest/SimpleTest.js"></script>
      6 <div style="user-select: none">
      7  <input type="number" value="322223">
      8 </div>
      9 <script>
     10 SimpleTest.waitForFocus(function() {
     11  document.querySelector('input').focus();
     12  requestAnimationFrame(function() {
     13    // Move after the 3
     14    synthesizeKey("KEY_ArrowRight");
     15    // Select "2222"
     16    for (let i = 0; i < 4; ++i)
     17      synthesizeKey("KEY_ArrowRight", { shiftKey: true });
     18    // Rip it off.
     19    synthesizeKey("KEY_Delete");
     20    document.documentElement.removeAttribute("class");
     21  });
     22 });
     23 </script>