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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/forms/radio/radio-input-keyboard-navigation.html

Issue 2620843004: Radio input keyboard navigation scroll (Closed)
Patch Set: This patch scrolls the parent container while navigating through the radio input using keyboard Created 3 years, 11 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/html/forms/RadioInputType.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 <html>
3 <head>
4 <script src="../../../resources/testharness.js"></script>
5 <script src="../../../resources/testharnessreport.js"></script>
6 <style>
7 #test1 {
8 max-height: 65px;
9 overflow: auto;
10 width: 100px;
11 height: 65px;
12 }
13 input[type="radio"] {
14 display: block;
15 }
16 </style>
17 </head>
18 <body>
19 <div id="test1">
20 <input type="radio" name="foo" checked>
21 <input type="radio" name="foo">
22 <input type="radio" name="foo">
23 <input type="radio" name="foo">
24 <input type="radio" name="foo">
25 <input type="radio" name="foo">
26 </div>
27 <script>
28 test(function() {
29 document.querySelector("input").focus();
30 assert_exists(window, "eventSender");
31 for (var i = 0; i < 5; i++) {
32 window.eventSender.keyDown("ArrowDown");
33 }
34 assert_greater_than(document.getElementById("test1").scrollTop, 0);
35 }, "Parent container should be scrolled while navigating through radio i nputs");
36 </script>
37 </body>
38 </html>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/html/forms/RadioInputType.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698