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

Unified Diff: third_party/WebKit/LayoutTests/paint/invalidation/text-selection-rect-in-overflow.html

Issue 2321183002: Move repaint tests (except for svg/) to paint/invalidation (Closed)
Patch Set: - Created 4 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: third_party/WebKit/LayoutTests/paint/invalidation/text-selection-rect-in-overflow.html
diff --git a/third_party/WebKit/LayoutTests/paint/invalidation/text-selection-rect-in-overflow.html b/third_party/WebKit/LayoutTests/paint/invalidation/text-selection-rect-in-overflow.html
new file mode 100644
index 0000000000000000000000000000000000000000..33e4ac9d22e697a347c8414d42930f71a8c5159a
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/paint/invalidation/text-selection-rect-in-overflow.html
@@ -0,0 +1,28 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http:/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+<head>
+ <title>Test for http://bugs.webkit.org/show_bug.cgi?id=13685</title>
+ <style type="text/css">
+ span#q { background-color: green; }
+ span#q::selection { background-color: red; }
+ </style>
+ <script src="resources/text-based-repaint.js" type="text/javascript"></script>
+ <script>
+ function repaintTest()
+ {
+ getSelection().empty();
+ }
+ </script>
+</head>
+<body onload="runRepaintAndPixelTest();">
+ <div id="t" style="height: 100px; overflow: hidden;">
+ <br><br><br><br>
+ <span id="q">Should have green background</span><br>
+ <br><br><br><br>
+ </div>
+ <script>
+ t.scrollTop = 100;
+ getSelection().setBaseAndExtent(q, 0, q, 1);
+ </script>
+</body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698