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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/overflow/scrollbar-click-retains-focus.html

Issue 2389073002: Fix link's hover state if the link under scrollbar (Closed)
Patch Set: fix test Created 4 years, 1 month 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/dom/Document.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 2
3 <script src="../../resources/js-test.js"></script> 3 <script src="../../resources/js-test.js"></script>
4 4
5 <style> 5 <style>
6 /* Float everything so they fit inside the viewport for using eventSender to click */ 6 /* Float everything so they fit inside the viewport for using eventSender to click */
7 section, footer, span, textarea, select { float: left; } 7 section, footer, span, textarea, select { float: left; }
8 </style> 8 </style>
9 9
10 <footer> 10 <footer>
11 <input> 11 <input>
12 </footer> 12 </footer>
13 13
14 <section style="height: 100px; width: 100px; overflow: scroll;"></section> 14 <section style="height: 100px; width: 100px; overflow: scroll;">
15 <div style="height: 500px; width: 500px;"/>
16 </section>
15 17
16 <div tabindex="1"> 18 <div tabindex="1">
17 <header style="height: 100px; width: 100px; overflow: scroll;"></header> 19 <header style="height: 100px; width: 100px; overflow: scroll;"></header>
18 </div> 20 </div>
19 21
20 <span contenteditable> 22 <span contenteditable>
21 <u style="height: 100px; width: 100px; overflow: scroll; display: block;"></ u> 23 <u style="height: 100px; width: 100px; overflow: scroll; display: block;"></ u>
22 </span> 24 </span>
23 25
24 <textarea rows="5"> 26 <textarea rows="5">
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 }); 112 });
111 113
112 test("Disabled form controls should not move the focus", function() { 114 test("Disabled form controls should not move the focus", function() {
113 document.querySelector("input").focus(); 115 document.querySelector("input").focus();
114 document.querySelector("select").disabled = true; 116 document.querySelector("select").disabled = true;
115 clickVerticalScrollbar("select"); 117 clickVerticalScrollbar("select");
116 shouldBeEqualToString("document.activeElement.tagName", "INPUT"); 118 shouldBeEqualToString("document.activeElement.tagName", "INPUT");
117 }); 119 });
118 </script> 120 </script>
119 121
122
bokan 2016/11/03 11:53:19 Nit: remove space
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/dom/Document.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698