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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/css/sticky/inline-sticky-anonymous-container.html

Issue 1870663002: Reland main thread position sticky implementation. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Only descend into children which have an ancestor overflow layer. Created 4 years, 8 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 unified diff | Download patch
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <script>
3 if (window.internals) {
4 internals.settings.setCSSStickyPositionEnabled(true);
5 }
6 </script>
7 <style>
8 body {
9 height: 2000px;
10 margin: 0;
11 overflow: hidden;
12 padding: 0;
13 }
14 .sticky {
15 width: 200px;
16 height: 200px;
17 background-color: green;
18 display: inline-block;
19 position: sticky;
20 top: 0;
21 }
22 .block {
23 width: 200px;
24 height: 200px;
25 background-color: red;
26 }
27 </style>
28 <script>
29 function doTest()
30 {
31 window.scrollTo(0, 200);
32 }
33 window.addEventListener('load', doTest, false);
34 </script>
35 <span class="sticky"></span>
36 <div class="block"></div>
37
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698