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

Unified Diff: third_party/WebKit/LayoutTests/paint/invalidation/relative-position-under-composited-scroll.html

Issue 1945983002: Set layers needsRepaint along the original compositingContainer chain if stacking status changes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2704
Patch Set: Created 4 years, 8 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
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/paint/invalidation/relative-position-under-composited-scroll-expected.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/paint/invalidation/relative-position-under-composited-scroll.html
diff --git a/third_party/WebKit/LayoutTests/paint/invalidation/relative-position-under-composited-scroll.html b/third_party/WebKit/LayoutTests/paint/invalidation/relative-position-under-composited-scroll.html
new file mode 100644
index 0000000000000000000000000000000000000000..954bb59149bc64c916591ef5bd9eff95bc0730a5
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/paint/invalidation/relative-position-under-composited-scroll.html
@@ -0,0 +1,19 @@
+<!DOCTYPE html>
+Tests paint invalidation when an object under composited scrolled container is
+set 'display: relative'. Passes if no red residue.
+<div style="overflow: scroll; width: 200px; height: 200px">
+ <div style="width: 800px; height: 800px">
+ <div id="item" style="background-color: red; width: 50px; height: 50px"></div>
+ </div>
+</div>
+<script src="../../resources/run-after-layout-and-paint.js"></script>
+<script>
+if (window.internal)
+ internals.settings.setPreferCompositingToLCDTextEnabled(true);
+runAfterLayoutAndPaint(function() {
+ item.style.position = 'relative';
+ item.style.left = '100px';
+ item.style.top = '100px';
+ item.style.backgroundColor = 'green';
+}, true);
+</script>
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/paint/invalidation/relative-position-under-composited-scroll-expected.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698