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

Unified Diff: third_party/WebKit/LayoutTests/fast/scroll-behavior/scroll-into-view-sticky.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
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/scroll-behavior/scroll-into-view-sticky-expected.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/fast/scroll-behavior/scroll-into-view-sticky.html
diff --git a/third_party/WebKit/LayoutTests/fast/scroll-behavior/scroll-into-view-sticky.html b/third_party/WebKit/LayoutTests/fast/scroll-behavior/scroll-into-view-sticky.html
new file mode 100644
index 0000000000000000000000000000000000000000..bc76a7720c92a2ca3f661030a0c478907518668b
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/scroll-behavior/scroll-into-view-sticky.html
@@ -0,0 +1,18 @@
+<style>
+.sticky {
+ position: sticky;
+ 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>
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/scroll-behavior/scroll-into-view-sticky-expected.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698