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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/inline/25277-2.html

Issue 2709983005: Selection API: Do not change focus by Selection functions. (Closed)
Patch Set: . Created 3 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
OLDNEW
1 <div id="description">This tests for a bug (https://bugs.webkit.org/show_bug.cgi ?id=25277) where a caret at the end of a non-wrapping line that extends outside of the containing block would paint over part of the focus halo.</div> 1 <div id="description">This tests for a bug (https://bugs.webkit.org/show_bug.cgi ?id=25277) where a caret at the end of a non-wrapping line that extends outside of the containing block would paint over part of the focus halo.</div>
2 <div id="edit" contentEditable="true" style="width: 50px; white-space: nowrap; t ext-align:right; direction:ltr">The caret should be at the end of this line.</di v> 2 <div id="edit" contentEditable="true" style="width: 50px; white-space: nowrap; t ext-align:right; direction:ltr">The caret should be at the end of this line.</di v>
3 <script>window.getSelection().collapse(document.getElementById("edit"), 1)</scri pt> 3 <script>
4 var edit = document.getElementById("edit");
5 edit.focus();
6 window.getSelection().collapse(edit, 1)
7 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698