Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / forms / focus-style-pending.html
blob726432272f367dc01b7a153c795513b4b7df0c4e
1 <html>
2 <link rel=stylesheet href="data:text/css,bogus{}">
3 <script>
4 if (window.testRunner)
5 testRunner.dumpAsText();
6 </script>
7 <body>
8 Test that focus() sets input focus correctly even when there are pending stylesheet loads.<br>
9 <input id=t onfocus="window.hasFocus=1">
10 <script>
11 var hasFocus = 0;
12 var t = document.getElementById('t');
13 t.focus();
14 document.write('<br>' + (hasFocus ? "<span style='color:green'>PASS</span>" : "<span style='color:red'>FAIL</span>"));
15 </script>