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

Side by Side Diff: third_party/WebKit/LayoutTests/compositing/overflow/mixed-composited-nested-sticky.html

Issue 2754983002: Composite sticky-positioned elements when they have composited descendants (Closed)
Patch Set: Created 3 years, 9 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 <style>
2 body {
3 margin: 0;
4 }
5
6 .container {
7 width: 200px;
8 height: 2000px;
9 }
10
11 .outerSticky {
12 position: sticky;
13 top: 50px;
14 background-color: green;
15 width: 200px;
16 height: 200px;
17 }
18
19 .middleSticky {
20 will-change: transform;
21
22 position: sticky;
23 top: 100px;
24 background-color: yellow;
25 width: 200px;
26 height: 100px;
27 }
28
29 .innerSticky {
30 will-change: transform;
31
32 position: sticky;
33 top: 125px;
34 background-color: red;
35 width: 200px;
36 height: 50px;
37 }
38 </style>
39
40 <script>
41 if (window.testRunner)
42 testRunner.waitUntilDone();
43
44 function finishTest() {
45 window.scrollTo(0, 200);
46 if (window.testRunner)
47 testRunner.notifyDone();
48 }
49
50 window.addEventListener('load', function() {
51 requestAnimationFrame(function() {
52 requestAnimationFrame(finishTest);
53 });
54 });
55 </script>
56
57 <div class="container">
58 <div class="outerSticky">
59 <div class="middleSticky">
60 <div class="innerSticky"></div>
61 </div>
62 </div>
63 </div>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698