3 <script src=
"../../resources/js-test.js"></script>
4 <script src=
"resources/spatial-navigation-utils.js"></script>
11 border:
1px solid black;
14 left: calc(
100px -
100px /
2);
15 top: calc(
150px -
100px /
2);
18 left: calc(
400px -
100px /
2);
19 top: calc(
150px -
100px /
2);
22 left: calc((
400px +
100px) /
2 -
100px /
2);
23 top: calc((
450px +
150px) /
2 -
100px /
2);
26 left: calc(
100px -
100px /
2);
27 top: calc(
450px -
100px /
2);
30 left: calc(
400px -
100px /
2);
31 top: calc(
450px -
100px /
2);
34 <body id=
"some-content" onload=
"runTest()">
35 <p id=
"description"></p>
37 <a id=
"e1" href=
"#e1">E1
</a>
38 <a id=
"e2" href=
"#e2">E2
</a>
39 <a id=
"e3" href=
"#e3">E3
</a>
40 <a id=
"e4" href=
"#e4">E4
</a>
41 <a id=
"e5" href=
"#e5">E5
</a>
43 <div id=
"console"></div>
44 <script type=
"application/javascript">
45 description('This test ensures that Spatial Navigation works with symmetrically positoned rects');
61 if (window.testRunner) {
62 testRunner.overridePreference(
"WebKitTabToLinksPreferenceKey",
1);
63 window.internals.settings.setSpatialNavigationEnabled(true);
68 // starting the test itself: get to a known place.
69 document.getElementById(
"e1").focus();
71 initTest(resultMap, finishJSTest);