tor-browser

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

max-prop.html (809B)


      1 <!DOCTYPE html>
      2 <html class="reftest-wait">
      3  <!-- Test: when changing the 'max' IDL property, the thumb of the range
      4             should be moved to the appropriate position. This test also
      5             sets the max to less than the current value which checks that the
      6             rendering code handles repositioning correctly in the case that
      7             sanitization of the value is needed for a non-value change. -->
      8  <script type="text/javascript">
      9    function setValue()
     10    {
     11      document.getElementById('i').max = "10";
     12      document.documentElement.className = '';
     13    }
     14    document.addEventListener("MozReftestInvalidate", setValue);
     15    setTimeout(setValue, 2000); // useful when not running under reftest suite
     16  </script>
     17  <body>
     18    <input type=range id='i' max=100>
     19  </body>
     20 </html>