Bug 1935035 - Update a macOS-only test that hard-codes child count.
[gecko.git] / layout / reftests / forms / placeholder / placeholder-10.html
blob40a35669ecea6abd2342167b1530b356b4d2405e
1 <!DOCTYPE html>
2 <html class="reftest-wait">
3 <!-- Test: when unfocused, if value='', newest placeholder should be shown -->
4 <link rel='stylesheet' type='text/css' href='placeholder-style.css'>
5 <script type="text/javascript">
6 function focusPlaceholder()
8 document.getElementById('p1').focus();
10 function setPlaceholder()
12 document.getElementById('p1').placeholder = 'my placeholder';
14 function unFocusPlaceholder()
16 document.getElementById('p1').blur();
18 function disableReftestWait()
20 document.documentElement.className = '';
22 </script>
24 <body onload="focusPlaceholder();">
25 <input type="text" id="p1" value="" placeholder="old placeholder" onfocus="setPlaceholder(); unFocusPlaceholder(); disableReftestWait();">
26 </body>
27 </html>