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

Unified Diff: LayoutTests/paint/invalidation/non-stacking-scroller-with-abspos-descendant-expected.html

Issue 1202523006: SP: Invalidate all non-compositing descendants in the slow scroll path. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 6 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: LayoutTests/paint/invalidation/non-stacking-scroller-with-abspos-descendant-expected.html
diff --git a/LayoutTests/paint/invalidation/non-stacking-scroller-with-abspos-descendant-expected.html b/LayoutTests/paint/invalidation/non-stacking-scroller-with-abspos-descendant-expected.html
new file mode 100644
index 0000000000000000000000000000000000000000..967fb999bf1f6bef1a526a21240e637272b7f9b2
--- /dev/null
+++ b/LayoutTests/paint/invalidation/non-stacking-scroller-with-abspos-descendant-expected.html
@@ -0,0 +1,15 @@
+<!doctype HTML>
+<script src="../../resources/run-after-layout-and-paint.js"></script>
+<div id="target" style="overflow:scroll; width: 300px; height: 300px;">
+ <div style="height: 1000px; width: 100px;"></div>
+</div>
+<div style="position: absolute; top: 200px; width: 100px; height: 100px; background: red"></div>
+<script>
+// Test that a non-stacking-context scroller does not scroll an absolutely positioned child.
+function test() {
+ runAfterLayoutAndPaint(function() {
+ target.scrollTop += 100;
+ }, true);
+}
+window.onload = test;
+</script>

Powered by Google App Engine
This is Rietveld 408576698