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