Index: third_party/WebKit/LayoutTests/paint/invalidation/invalidation-on-foreground-graphics-layer.html |
diff --git a/third_party/WebKit/LayoutTests/paint/invalidation/invalidation-on-foreground-graphics-layer.html b/third_party/WebKit/LayoutTests/paint/invalidation/invalidation-on-foreground-graphics-layer.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..9a24407a67e197c1a4a2793dfdbe370ec1d632c7 |
--- /dev/null |
+++ b/third_party/WebKit/LayoutTests/paint/invalidation/invalidation-on-foreground-graphics-layer.html |
@@ -0,0 +1,16 @@ |
+<!doctype HTML> |
+<script src="../../fast/repaint/resources/text-based-repaint.js"></script> |
+<div style="will-change: transform; overflow: scroll; width: 200px; height: 200px; background: lightgray"> |
+ <div style="position: relative; z-index: -1; width: 200px; height: 200px; background: lightblue; will-change: transform"></div> |
+ <div id="target" style="width: 200px; height: 200px; margin-top: -100px; margin-left: 100px; background: red"></div> |
+</div> |
+<script> |
+// Tests invalidation of the foreground graphics layer, which is used to paint normal flow and positive z-index children |
+// in the presence of a composited, negative z-index child. |
+function repaintTest() { |
+ target.style.background = "green"; |
+} |
+onload = function() { |
+ runRepaintAndPixelTest(); |
+} |
+</script> |