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

Unified Diff: third_party/WebKit/LayoutTests/paint/invalidation/do-not-paint-below-image-baseline.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/do-not-paint-below-image-baseline.html
diff --git a/third_party/WebKit/LayoutTests/paint/invalidation/do-not-paint-below-image-baseline.html b/third_party/WebKit/LayoutTests/paint/invalidation/do-not-paint-below-image-baseline.html
new file mode 100644
index 0000000000000000000000000000000000000000..a218ae5c585fac90041e81bd028933b291d1a07e
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/paint/invalidation/do-not-paint-below-image-baseline.html
@@ -0,0 +1,30 @@
+<!DOCTYPE html>
+<html>
+ <head>
+ <script src="resources/text-based-repaint.js"></script>
+ <script>
+ function repaintTest()
+ {
+ var things = document.getElementsByClassName("before");
+ while (things.length)
+ things[0].classList.remove("before");
+ }
+ </script>
+ <style>
+ img {
+ margin: 50px;
+ }
+ body {
+ margin: 0px;
+ }
+ .before {
+ background-color: green;
+ }
+ </style>
+ </head>
+ <body onload="runRepaintAndPixelTest()">
+ <img class="before" src="../../fast/images/resources/59.jpg">
+ <p> When painting an inline image, do not paint below its baseline unless its selected.
+ The invalidation rect should not extend outside the content rect of the image. </p>
+ </body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698