editor/reftests/input-text-notheme-onfocus-reframe.html
author Gérard Talbot <github@gtalbot.org>
Tue, 05 Mar 2019 12:18:58 +0000
changeset 522205 b2ffdd7ebfe7ada40c1f12ea2b1a854b134045c9
parent 97003 42c372c2f7493b79f79c58150b5531d23e74ca61
permissions -rw-r--r--
Bug 1529749 [wpt PR 15321] - Added 2 new calc() tests with background-position, a=testonly Automatic update from web-platform-tests Added 2 new calc() tests with background-position -- wpt-commits: 1e29498a87bc6da1fc2bd8fa36c5b8f7ec652d82 wpt-pr: 15321

<!DOCTYPE HTML>
<html class="reftest-wait">
<head>
	<title>bug 536421</title>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<style>
input { border:1px solid blue; }
</style>
</head>
<body onload="doTest()">
  <input value="test" id="textbox" onfocus="triggerBug();" type="text">
  <script type="text/javascript">
    function finishTest()
    {
      document.documentElement.removeAttribute("class");
    }
    function triggerBug()
    {
      var t = document.getElementById("textbox");
      t.style.display = "none";
      document.body.offsetWidth;
      t.style.display = "";
      finishTest();
    }
    function doTest()
    {
      var t = document.getElementById("textbox");
      t.focus();
    }
  </script>
</body>
</html>