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

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

Powered by Google App Engine
This is Rietveld 408576698