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>
10 <script src=
"../../resources/js-test.js"></script>
12 document
.body
.offsetTop
; // Force layout.
13 var input1
= document
.getElementById('input1');
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")');