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

Side by Side Diff: LayoutTests/paint/selection/invalidation-rect-with-br-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: Don't need redundant early-out for selection rect. 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
(Empty)
1 <!DOCTYPE html>
2 <script src="../../resources/ahem.js"></script>
3 <script src="../../fast/repaint/resources/text-based-repaint.js"></script>
4 <script src="../../resources/run-after-layout-and-paint.js"></script>
5 <script src="resources/selection.js"></script>
6 <script>
7 // Selects two lines with top one ending in a line break and expects a newline
8 // to be represented.
9 function repaintTest() {
10 selectRange(container, 0, container, 3);
11 };
12 window.onload = runRepaintTest;
13 </script>
14 <style>
15 div {
16 font-family: Ahem;
17 }
18 </style>
19 <div id="container">
20 a<br>b
21 </div>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698