Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / svg / custom / a-focus-by-tab-offscreen.html
blobf2328698dafa0f52aa55468a76e2aa4a93ee519a
1 <!DOCTYPE html>
2 <html>
3 <body>
4 <input id="input1">
5 <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="100" height="100" viewBox="0 0 100 100">
6 <g transform="translate(-1000 -1000)">
7 <a xlink:href="" id="svg-a"><text>Link</text></a>
8 </g>
9 </svg>
10 <script src="../../resources/js-test.js"></script>
11 <script>
12 document.body.offsetTop; // Force layout.
13 var input1 = document.getElementById('input1');
14 var tab = '\t';
15 testRunner.overridePreference('WebKitTabToLinksPreferenceKey', true);
16 debug('tabToLinks=true');
17 shouldBe('input1.focus(); document.activeElement', 'input1');
18 shouldBe('eventSender.keyDown(tab); document.activeElement', 'document.getElementById("svg-a")');
19 document.activeElement.blur();
21 debug('tabToLinks=false');
22 testRunner.overridePreference('WebKitTabToLinksPreferenceKey', false);
23 shouldBe('input1.focus(); document.activeElement', 'input1');
24 shouldNotBe('eventSender.keyDown(tab); document.activeElement', 'document.getElementById("svg-a")');
25 </script>
26 </body>