https://github.com/mozilla/gecko-dev
Raw File
Tip revision: 013e7534cdcfb8f7be183a73b471c9d58b38f2cb authored by Botond Ballo on 11 March 2014, 17:33:56 UTC
Bug 964935 - Fix composition bounds calculation and APZ hit testing. a=gal
Tip revision: 013e753
placeholder-10.html
<!DOCTYPE html>
<html class="reftest-wait">
  <!-- Test: when unfocused, if value='', newest placeholder should be shown -->
  <link rel='stylesheet' type='text/css' href='placeholder-style.css'>
  <script type="text/javascript">
    function focusPlaceholder()
    {
      document.getElementById('p1').focus();
    }
    function setPlaceholder()
    {
      document.getElementById('p1').placeholder = 'my placeholder';
    }
    function unFocusPlaceholder()
    {
      document.getElementById('p1').blur();
    }
    function disableReftestWait()
    {
      document.documentElement.className = '';
    }
  </script>

  <body onload="focusPlaceholder();">
    <input type="text" id="p1" value="" placeholder="old placeholder" onfocus="setPlaceholder(); unFocusPlaceholder(); disableReftestWait();">
  </body>
</html>
back to top