3 <script src=
"../../resources/js-test.js"></script>
4 <script src=
"resources/spatial-navigation-utils.js"></script>
5 <script type=
"application/javascript">
19 if (window.testRunner) {
20 testRunner.dumpAsText();
21 testRunner.overridePreference(
"WebKitTabToLinksPreferenceKey",
1);
22 window.internals.settings.setSpatialNavigationEnabled(true);
23 testRunner.waitUntilDone();
28 // starting the test itself: get to a known place.
29 document.getElementById(
"start").focus();
31 initTest(resultMap, testCompleted);
34 function testCompleted()
36 if (window.testRunner)
37 testRunner.notifyDone();
40 window.onload = runTest;
43 div.overflow1 {overflow:auto; height:
100px; width:
200px; border:
1px solid cyan;}
44 div.overflow2 {overflow:hidden; height:
80px; width:
150px; border:
1px solid cyan;}
45 div:focus { outline:
2px solid red;}
50 <div class=
"overflow1">
51 <div><a href=
"#" id=
"start"><img src=
"resources/green.png" width=
40px; height=
40px;
></a></div>
52 <div><a href=
"#" id=
"f2"><img src=
"resources/green.png" width=
50px; height=
40px;
></a></div>
53 <div><a href=
"#" id=
"f3"><img src=
"resources/green.png" width=
40px; height=
40px;
></a></div>
55 <div><a href=
"#" id=
"f4"><img src=
"resources/green.png" width=
50px; height=
40px;
></a></div>
56 <div class=
"overflow2">
57 <div><a href=
"#" id=
"f5"><img src=
"resources/green.png" width=
40px; height=
40px;
></a></div>
58 <div><a href=
"#" id=
"f6"><img src=
"resources/green.png" width=
50px; height=
40px;
></a></div>
60 <div><a href=
"#" id=
"f7"><img src=
"resources/green.png" width=
40px; height=
40px;
></a></div>
61 <div><a href=
"#" id=
"f8"><img src=
"resources/green.png" width=
50px; height=
40px;
></a></div>
63 <div><a href=
"#" id=
"f9"><img src=
"resources/green.png" width=
40px; height=
40px;
></a></div>
65 <div id=
"console"></div>
66 This test is testing that div with overflow:auto would scroll, by div with overflow:hidden would not.