Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(353)

Side by Side Diff: third_party/WebKit/LayoutTests/svg/custom/display-none-a-does-not-stop-focus-navigation.html

Issue 1700833003: Consider focusability even when tabs-to-links is enabled for <svg:a> (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/svg/SVGAElement.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/svg/SVGAElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698