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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/css/sticky/sticky-clip-rel-child.html

Issue 2020103002: Fix sticky constraints and update sticky layer positions recursively after scroll. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Mark sticky positioned objects for positioned movement after frameview scroll. Created 4 years, 6 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 height: 2000px;
5 margin: 0;
6 }
7 .sticky {
8 background: red;
9 height: 100px;
10 width: 100px;
11 overflow: hidden;
12 position: sticky;
13 top: 0;
14 }
15 .relative {
16 background: green;
17 height: 100px;
18 width: 100px;
19 position: relative;
20 }
21 </style>
22 <script>
23 if (window.testRunner)
24 testRunner.waitUntilDone();
25 function doTest() {
26 finishTestInXFrames(2);
27 }
28 function finishTestInXFrames(frames) {
29 if (frames > 0) {
30 requestAnimationFrame(finishTestInXFrames.bind(null, frames - 1));
31 return;
32 }
33 finishTest();
34 }
35 function finishTest() {
36 window.scrollTo(0, 100);
37 if (window.testRunner)
38 testRunner.notifyDone();
39 }
40 window.addEventListener('load', doTest, false);
41 </script>
42 <div class="sticky">
43 <div class="relative">
44 </div>
45 </div>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698