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

Unified 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: 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 side-by-side diff with in-line comments
Download patch
Index: LayoutTests/paint/selection/invalidation-rect-with-br-includes-newline.html
diff --git a/LayoutTests/paint/selection/invalidation-rect-with-br-includes-newline.html b/LayoutTests/paint/selection/invalidation-rect-with-br-includes-newline.html
new file mode 100644
index 0000000000000000000000000000000000000000..ff1c1f9b38af309d5d7b466c77323f9002a23ede
--- /dev/null
+++ b/LayoutTests/paint/selection/invalidation-rect-with-br-includes-newline.html
@@ -0,0 +1,21 @@
+<!DOCTYPE html>
+<script src="../../resources/ahem.js"></script>
+<script src="../../fast/repaint/resources/text-based-repaint.js"></script>
+<script src="../../resources/run-after-layout-and-paint.js"></script>
+<script src="resources/selection.js"></script>
+<script>
+// Selects two lines with top one ending in a line break and expects a newline
+// to be represented.
+function repaintTest() {
+ selectRange(container, 0, container, 3);
+};
+window.onload = runRepaintTest;
+</script>
+<style>
+div {
+ font-family: Ahem;
+}
+</style>
+<div id="container">
+ a<br>b
+</div>

Powered by Google App Engine
This is Rietveld 408576698