Bug 1942006 - Upstream a variety of Servo-specific code from Servo's downstream fork...
[gecko.git] / layout / reftests / forms / input / range / valueAsNumber-prop-unthemed.html
bloba2a6eb6cce75a8fe176cccbfc4f5de154dd2e940
1 <!DOCTYPE html>
2 <html class="reftest-wait">
3 <!-- Test: when changing the 'value' IDL property, the thumb of the range
4 should be moved to the appropriate position -->
5 <script type="text/javascript">
6 function setValue()
8 document.getElementById('i').valueAsNumber = 75;
9 document.documentElement.className = '';
11 document.addEventListener("MozReftestInvalidate", setValue);
12 setTimeout(setValue, 2000); // useful when not running under reftest suite
13 </script>
14 <body>
15 <input type=range id='i' value=50 step=25 style='-moz-appearance:none'>
16 </body>
17 </html>