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

Side by Side Diff: third_party/WebKit/LayoutTests/compositing/overflow/non-composited-sticky-element-in-main-thread-scrolled-composited-ancestor-expected.html

Issue 2845613002: Fix the bug that sticky element may not be correctly invalidated due to non-promotion (Closed)
Patch Set: Logic update && add layout test Created 3 years, 7 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 .scroller {
4 overflow: scroll;
5 width: 200px;
6 height: 600px;
7 }
8
9 .box {
10 background: rgba(255, 0, 0, 0.5);
11 position: sticky;
flackr 2017/04/27 14:22:56 Just to avoid testing sticky with sticky, let's us
yigu 2017/04/27 15:20:10 Done.
12 width: 100%;
13 height: 50px;
14 top: 0px;
15 }
16
17 .container {
18 width: 100%;
19 height: 1000px;
20 background: green;
21 }
22 </style>
23
24 <div id="scroller" class="scroller">
25 <div class="container">
26 <div class="box"></div>
27 </div>
28 </div>
29
30 <script>
31 let scroller = document.getElementById('scroller');
32 scroller.scrollTop = 200;
33 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698