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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/css/sticky/sticky-container-moved-expected.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 <style>
3 body {
4 margin: 0;
5 height: 2000px;
6 overflow: hidden; /* hide scrollbars */
7 }
8
9 #spacer {
10 height: 0px;
11 }
12
13 .container {
14 background-color: red;
15 width: 200px;
16 height: 400px;
17 outline: 2px solid black;
18 }
19
20 .box {
21 width: 200px;
22 height: 200px;
23 }
24
25 .sticky {
26 position: relative;
27 top: 200px;
28 background-color: green;
29 }
30
31 </style>
32 <script>
33 function doTest()
34 {
35 window.scrollTo(0, 200);
36 }
37 window.addEventListener('load', doTest, false);
38 </script>
39 <div id="spacer"></div>
40 <div class="container">
41 <div class="sticky box"></div>
42 </div>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698