Avoid style resolution when clearing focused element.
[WebKit-https.git] / LayoutTests / fast / dom / focus-style-resolution.html
1 <script>
2 if (window.testRunner) {
3     testRunner.dumpAsText();
4     testRunner.waitUntilDone();
5 }
6 function eventhandler1() {
7 txt.appendChild(kg);
8 }
9
10 function eventhandler2() {
11 anim.appendChild(kg);
12 }
13
14 function eventhandler3() {
15 table.scrollIntoView(true);
16 testRunner.notifyDone();
17 }
18
19 </script>
20 This test passes if it doesn't assert or crash.
21 <table id="table"></table>
22 <form>
23 <input id="kg" autofocus="autofocus">
24 </form>
25 <svg>
26 <animate id="anim" attributeName="text-anchor" from="middle" to="inherit" onbegin="eventhandler1()" />
27 <text id="txt" onload="eventhandler3()">
28 <font color="white"></font>
29 <select onfocus="eventhandler2()" autofocus="autofocus">
30 <textarea>a</textarea>
31 <iframe onload="eventhandler1()"></iframe>