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

Unified Diff: third_party/WebKit/LayoutTests/fast/scroll-behavior/scroll-into-view-sticky-expected.html

Issue 2488563003: Scroll sticky elements into view. (Closed)
Patch Set: Created 4 years, 1 month 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/fast/scroll-behavior/scroll-into-view-sticky-expected.html
diff --git a/third_party/WebKit/LayoutTests/fast/scroll-behavior/scroll-into-view-sticky-expected.html b/third_party/WebKit/LayoutTests/fast/scroll-behavior/scroll-into-view-sticky-expected.html
new file mode 100644
index 0000000000000000000000000000000000000000..3fb371a0da5fec433cb952c5e4391bfaf111d5dd
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/scroll-behavior/scroll-into-view-sticky-expected.html
@@ -0,0 +1,18 @@
+<style>
+.sticky {
+ position: relative;
+ top: 0;
+ margin-bottom: 800px;
+ height: 100px;
+}
+</style>
+<script>
+onload = function() {
+ target.scrollIntoView();
+}
+</script>
+<body>
+ <div class="sticky" style="background: red;"></div>
+ <div class="sticky" style="background: green;" id="target"></div>
+</body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698