Bug 1942006 - Upstream a variety of Servo-specific code from Servo's downstream fork...
[gecko.git] / layout / reftests / forms / input / range / max-prop.html
blob18a018330e12c3aaa5730ca90ee5e15c5ebfbe85
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()
11 document.getElementById('i').max = "10";
12 document.documentElement.className = '';
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>