Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / spatial-navigation / snav-div-overflow-scrol-hidden.html
blob937bc20d231e05b1a2724f46891fdad64bb955e0
1 <html>
2 <head>
3 <script src="../../resources/js-test.js"></script>
4 <script src="resources/spatial-navigation-utils.js"></script>
5 <script type="application/javascript">
7 var resultMap = [
8 ["Down", "f2"],
9 ["Down", "f3"],
10 ["Down", "f3"],
11 ["Down", "f4"],
12 ["Down", "f4"],
13 ["Down", "f5"],
14 ["Down", "f6"],
15 ["Down", "f9"],
16 ["DONE", "DONE"]
19 if (window.testRunner) {
20 testRunner.dumpAsText();
21 testRunner.overridePreference("WebKitTabToLinksPreferenceKey", 1);
22 window.internals.settings.setSpatialNavigationEnabled(true);
23 testRunner.waitUntilDone();
26 function runTest()
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;
41 </script>
42 <style>
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;}
46 </style>
47 </head>
49 <body>
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>
54 <br>
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>
59 <br>
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>
62 </div><br>
63 <div><a href="#" id="f9"><img src="resources/green.png" width=40px; height=40px;></a></div>
64 </div></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.
67 </body>
68 </html>