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

Side by Side Diff: LayoutTests/paint/selection/invalidation-rect-includes-newline.html

Issue 1350973003: Invalidate line break selection rects when selected. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Preserve prior LayoutBR selection rect behavior when REF is off. Created 5 years, 3 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 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <script src="../../resources/ahem.js"></script> 2 <script src="../../resources/ahem.js"></script>
3 <script src="../../fast/repaint/resources/text-based-repaint.js"></script> 3 <script src="../../fast/repaint/resources/text-based-repaint.js"></script>
4 <script src="resources/selection.js"></script>
4 <script> 5 <script>
5 // Selects two lines and expects a newline to be represented. 6 // Selects two lines and expects a newline to be represented.
6 function repaintTest() { 7 function repaintTest() {
7 if (window.internals) 8 selectRange(container, 0, container, 1);
8 window.internals.setSelectionPaintingWithoutSelectionGapsEnabled(true);
9 var range = document.createRange();
10 range.setStart(container, 0);
11 range.setEnd(container, 1);
12 window.getSelection().addRange(range);
13 }; 9 };
14 window.onload = runRepaintTest; 10 window.onload = runRepaintTest;
15 </script> 11 </script>
16 <style> 12 <style>
17 div { 13 div {
18 font-family: Ahem; 14 font-family: Ahem;
19 width: 2em; 15 width: 2em;
20 } 16 }
21 </style> 17 </style>
22 <div id="container"> 18 <div id="container">
23 xx y 19 xx y
24 </div> 20 </div>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698