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

Unified Diff: third_party/WebKit/LayoutTests/paint/selection/text-selection-newline-clipped-by-overflow.html

Issue 1817463004: Always apply parent clips to selection rects when painting. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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: third_party/WebKit/LayoutTests/paint/selection/text-selection-newline-clipped-by-overflow.html
diff --git a/third_party/WebKit/LayoutTests/paint/selection/text-selection-newline-clipped-by-overflow.html b/third_party/WebKit/LayoutTests/paint/selection/text-selection-newline-clipped-by-overflow.html
new file mode 100644
index 0000000000000000000000000000000000000000..516cfb57ab314c2c8612375e842267971d263d41
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/paint/selection/text-selection-newline-clipped-by-overflow.html
@@ -0,0 +1,16 @@
+<!doctype HTML>
+<script src="resources/selection.js"></script>
+<script>
+// Selects two lines and expects a newline to be represented, but clipped by the containing div.
+function run() {
+ selectNode(container);
+};
+window.onload = run;
+</script>
+
+<div id="container">
+ <div>
+ <div style="overflow:hidden; display: inline-block">test1</div>
+ </div>
+ test2
+</div>

Powered by Google App Engine
This is Rietveld 408576698