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

Side by Side Diff: third_party/WebKit/LayoutTests/paint/invalidation/caret-outside-block.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 <html> 1 <html>
2 <head> 2 <head>
3 <script src="resources/text-based-repaint.js"></script> 3 <script src="resources/text-based-repaint.js"></script>
4 <script> 4 <script>
5 function repaintTest() 5 function repaintTest()
6 { 6 {
7 var target = document.getElementById("target"); 7 var target = document.getElementById("target");
8 target.focus();
8 getSelection().setBaseAndExtent(target.firstChild, 43, target.firstC hild, 43); 9 getSelection().setBaseAndExtent(target.firstChild, 43, target.firstC hild, 43);
9 } 10 }
10 </script> 11 </script>
11 </head> 12 </head>
12 <body onload="runRepaintAndPixelTest()"> 13 <body onload="runRepaintAndPixelTest()">
13 <div id="target" style="-webkit-user-modify: read-write; text-align: right; outline: none;">The caret should be at the end of this line</div> 14 <div id="target" style="-webkit-user-modify: read-write; text-align: right; outline: none;">The caret should be at the end of this line</div>
14 </body> 15 </body>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698