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

Unified Diff: third_party/WebKit/LayoutTests/paint/invalidation/compositing/invalidations-with-large-negative-margin.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/compositing/invalidations-with-large-negative-margin.html
diff --git a/third_party/WebKit/LayoutTests/paint/invalidation/compositing/invalidations-with-large-negative-margin.html b/third_party/WebKit/LayoutTests/paint/invalidation/compositing/invalidations-with-large-negative-margin.html
new file mode 100644
index 0000000000000000000000000000000000000000..ca9e273ea08a22c446e812a1897d13a86b2c6735
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/paint/invalidation/compositing/invalidations-with-large-negative-margin.html
@@ -0,0 +1,20 @@
+<!DOCTYPE html>
+<div style="height:200px;width:600px;overflow:scroll">
+ <div style="position:relative">
+ <div style="height:400px;margin-bottom:-400px;position:relative">
+ <div id="chip" style="width:50px;height:50px;position:absolute;background:lightblue;margin:0"></div>
+ </div>
+ </div>
+</div>
+
+<script src="../resources/text-based-repaint.js"></script>
+<script>
+// Test that moving a Layer that is squashed relative to its squashing container repaints correctly.
+// In particular, the repaint rect needs to be recorded in the correct position relative to the squashing GraphicsLayer.
+function repaintTest()
+{
+ document.getElementById('chip').style.left = "400px";
+}
+
+runRepaintAndPixelTest();
+</script>

Powered by Google App Engine
This is Rietveld 408576698