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

Unified Diff: third_party/WebKit/LayoutTests/compositing/overflow/composited-sticky-element-enclosing-layers.html

Issue 2698843004: Correct for enclosing layers scroll position in sticky_data->main_thread_offset (Closed)
Patch Set: Address nit Created 3 years, 10 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/composited-sticky-element-enclosing-layers.html
diff --git a/third_party/WebKit/LayoutTests/compositing/overflow/composited-sticky-element-enclosing-layers.html b/third_party/WebKit/LayoutTests/compositing/overflow/composited-sticky-element-enclosing-layers.html
new file mode 100644
index 0000000000000000000000000000000000000000..6985f7d4024cc373a4c99c2137c49a24cfaf4ece
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/compositing/overflow/composited-sticky-element-enclosing-layers.html
@@ -0,0 +1,37 @@
+<script>
+onload = function() {
+ scroller.scrollTop = 200;
+}
+</script>
+<style>
+.composited {
+ will-change: transform;
+}
+
+#scroller {
+ overflow: scroll;
+ height: 200px;
+ width: 200px;
+}
+
+.container {
+ height: 500px;
+ background: red;
+}
+
+.sticky {
+ position: sticky;
+ top: 25px;
+ height: 50px;
+ background: green;
+}
+</style>
+<div id="scroller" class="composited">
+ <div class="composited container">
+ <div class="composited container">
+ <div class="composited container">
chrishtr 2017/02/28 19:36:28 Why have three nested "composited container" eleme
smcgruer 2017/03/01 19:58:39 No real reason. Makes me feel better that it still
+ <div class="composited sticky"></div>
+ </div>
+ </div>
+ </div>
+</div>

Powered by Google App Engine
This is Rietveld 408576698