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

Unified Diff: third_party/WebKit/LayoutTests/paint/invalidation/invalidation-on-foreground-graphics-layer.html

Issue 2019583002: Don't include scroll offset in offsetFromLayoutObject for scrolling contents layers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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/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>

Powered by Google App Engine
This is Rietveld 408576698