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

Unified Diff: third_party/WebKit/LayoutTests/compositing/overflow/mixed-composited-nested-sticky-overflow-scroller-expected.html

Issue 2754983002: Composite sticky-positioned elements when they have composited descendants (Closed)
Patch Set: Address chrishtr comment Created 3 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/compositing/overflow/mixed-composited-nested-sticky-overflow-scroller-expected.html
diff --git a/third_party/WebKit/LayoutTests/compositing/overflow/mixed-composited-nested-sticky-overflow-scroller-expected.html b/third_party/WebKit/LayoutTests/compositing/overflow/mixed-composited-nested-sticky-overflow-scroller-expected.html
new file mode 100644
index 0000000000000000000000000000000000000000..4d096c5ff267ff312950eab57ef7721526f557b2
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/compositing/overflow/mixed-composited-nested-sticky-overflow-scroller-expected.html
@@ -0,0 +1,67 @@
+<style>
+body {
+ margin: 0;
+}
+
+.scroller {
+ overflow: auto;
+ height: 300px;
+ width: 250px;
+}
+
+.container {
+ width: 200px;
+ height: 2000px;
+}
+
+.outerIndicator {
+ position: absolute;
+ top: 50px;
+ background-color: green;
+ width: 200px;
+ height: 200px;
+}
+
+.middleIndicator {
+ position: absolute;
+ top: 50px;
+ background-color: yellow;
+ width: 200px;
+ height: 100px;
+}
+
+.innerIndicator {
+ position: absolute;
+ top: 25px;
+ background-color: red;
+ width: 200px;
+ height: 50px;
+}
+</style>
+
+<script>
+if (window.testRunner)
+ testRunner.waitUntilDone();
+
+function finishTest() {
+ document.querySelector('.scroller').scrollTop = 200;
+ if (window.testRunner)
+ testRunner.notifyDone();
+}
+
+window.addEventListener('load', function() {
+ requestAnimationFrame(function() {
+ requestAnimationFrame(finishTest);
+ });
+});
+</script>
+
+<div class="scroller">
+ <div class="container">
+ <div class="outerIndicator">
+ <div class="middleIndicator">
+ <div class="innerIndicator"></div>
+ </div>
+ </div>
+ </div>
+</div>

Powered by Google App Engine
This is Rietveld 408576698