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

Side by Side Diff: LayoutTests/editing/selection/subpixel-positioned-selection.html

Issue 464143003: Fix selection residue in sub-pixel positioned element (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 4 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 | Annotate | Revision Log
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <script src="../../resources/run-after-display.js"></script>
3 <script>
4 if (window.testRunner)
5 testRunner.waitUntilDone();
6
7 function test(start, end) {
8 var text = document.getElementsByTagName('div')[0].firstChild;
9 window.getSelection().setBaseAndExtent(text, start, text, end);
10 if (start == end) {
11 if (window.testRunner)
12 testRunner.notifyDone();
13 return;
14 }
15 runAfterDisplay(function() {
16 test(start + 1, end - 1);
17 });
18 }
19
20 onload = function() {
21 test(1, 25);
22 };
23 </script>
24 There should be no residue when shrinking a selection under a sub-pixel-position ed element.
25 <div style="position: absolute; left: 0.3px">
26 ABCDEFGHIJKLMNOPQRSTUVWXYZ
27 </div>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698