Bug 1935035 - Update a macOS-only test that hard-codes child count.
[gecko.git] / layout / reftests / forms / placeholder / placeholder-9.html
blob35155c0120a10b1fd76ecaed804ebcf7bf419f3e
1 <!DOCTYPE html>
2 <html class="reftest-wait">
3 <link rel='stylesheet' type='text/css' href='placeholder-style.css'>
4 <!-- Test: when focused, value reset should show placeholder. -->
5 <script type="text/javascript">
6 function focusPlaceholder()
8 document.getElementById('p1').focus();
10 function resetValue()
12 document.getElementById('p1').value = '';
14 function disableReftestWait()
16 document.documentElement.className = '';
18 </script>
20 <body onload="focusPlaceholder();">
21 <input type="text" id="p1" value="my value" placeholder="my placeholder" onfocus="resetValue(); disableReftestWait();">
22 </body>
23 </html>