Load event must be fired only for the SVG structurally external elements and the...
[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 <body onload="eventhandler3()">
21 This test passes if it doesn't assert or crash.
22 <table id="table"></table>
23 <form>
24 <input id="kg" autofocus="autofocus">
25 </form>
26 <svg>
27 <animate id="anim" attributeName="text-anchor" from="middle" to="inherit" onbegin="eventhandler1()" />
28 <text id="txt">
29 <font color="white"></font>
30 <select onfocus="eventhandler2()" autofocus="autofocus">
31 <textarea>a</textarea>
32 <iframe onload="eventhandler1()"></iframe>