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

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: Simplify sticky box rect calculation. Created 4 years, 5 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
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/css/sticky/sticky-clip-rel-child-expected.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #scroller {
22 left: 200px;
23 top: 100px;
24 height: 100px;
25 width: 120px;
26 overflow: auto;
27 position: absolute;
28 }
29 .spacer {
30 height: 1000px;
31 }
32 </style>
33 <script>
34 if (window.testRunner)
35 testRunner.waitUntilDone();
36 function doTest() {
37 finishTestInXFrames(2);
38 }
39 function finishTestInXFrames(frames) {
40 if (frames > 0) {
41 requestAnimationFrame(finishTestInXFrames.bind(null, frames - 1));
42 return;
43 }
44 finishTest();
45 }
46 function finishTest() {
47 window.scrollTo(0, 100);
48 document.getElementById('scroller').scrollTop = 100;
49 if (window.testRunner)
50 testRunner.notifyDone();
51 }
52 window.addEventListener('load', doTest, false);
53 </script>
54 <div class="sticky">
55 <div class="relative">
56 </div>
57 </div>
58 <div id="scroller">
59 <div class="sticky">
60 <div class="relative">
61 </div>
62 </div>
63 <div class="spacer"></div>
64 </div>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/css/sticky/sticky-clip-rel-child-expected.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698