OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <script src="../../resources/testharness.js"></script> |
| 3 <script src="../../resources/testharnessreport.js"></script> |
| 4 <input id="input1"></input> |
| 5 <svg display="none" width="100" height="100"> |
| 6 <a xlink:href="#foo"> |
| 7 <text y="20">Link</text> |
| 8 </a> |
| 9 </svg> |
| 10 <input id="input2"></input> |
| 11 <script> |
| 12 test(function() { |
| 13 input1.focus(); |
| 14 assert_equals(document.activeElement, input1); |
| 15 |
| 16 testRunner.overridePreference('WebKitTabToLinksPreferenceKey', true); |
| 17 eventSender.keyDown('\t'); |
| 18 assert_equals(document.activeElement, input2); |
| 19 }, 'SVG <a> which is display none does not block focus traversal'); |
| 20 </script> |
OLD | NEW |