3 <script src="../js/resources/js-test-pre.js"></script>
4 <script src="resources/spatial-navigation-utils.js"></script>
5 <script type="application/javascript">
12 if (window.layoutTestController) {
13 layoutTestController.dumpAsText();
14 layoutTestController.setSpatialNavigationEnabled(true);
15 layoutTestController.overridePreference("WebKitTabToLinksPreferenceKey", 1);
16 layoutTestController.waitUntilDone();
21 // starting the test itself: get to a known place.
22 document.getElementById("start").focus();
24 initTest(resultMap, testCompleted);
27 function testCompleted()
29 if (window.layoutTestController)
30 layoutTestController.notifyDone();
33 window.onload = runTest;
36 <script src="js/resources/js-test-post.js"></script>
39 <body id="some-content" xmlns="http://www.w3.org/1999/xhtml">
40 <p>This is <a id="start" href="a">link_1</a>.</p>
41 <br>This is <iframe id="1" width=100 height=100 style="display:none" src="data:text/html,
43 <a id='11' href='http://a'>b</a>
44 <a id='12' href='http://a'>c</a>
45 <a id='13' href='http://a'>d</a>
47 "></iframe><br> hidden iframe.<br>
48 <p>This is <a id="end" href="a">link_2</a>.</p>
49 <div id="console"></div>
50 <p>This test is to test that iframe with display:none does not get focus, and neither do its descendants</p>