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

Side by Side Diff: third_party/WebKit/LayoutTests/compositing/overflow/composited-sticky-element-expected.html

Issue 2705453002: Force compositing/overflow/composited-sticky-element to be composited (Closed)
Patch Set: Actually composite... Created 3 years, 10 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 | « third_party/WebKit/LayoutTests/compositing/overflow/composited-sticky-element.html ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <script> 1 <script>
2 onload = function() { 2 onload = function() {
3 scroller.scrollTop = 100; 3 scroller.scrollTop = 100;
4 } 4 }
5 </script> 5 </script>
6 <style> 6 <style>
7 .composited {
8 will-change: transform;
9 }
10
7 #scroller { 11 #scroller {
8 background: white; 12 background: white;
9 height: 200px; 13 height: 200px;
10 overflow: auto; 14 overflow: auto;
11 width: 200px; 15 width: 200px;
12 } 16 }
13 .sticky { 17 .sticky {
14 position: relative; 18 position: relative;
15 top: 100px; 19 top: 100px;
16 height: 50px; 20 height: 50px;
17 background: green; 21 background: green;
18 } 22 }
19 .spacer { 23 .spacer {
20 height: 2000px; 24 height: 2000px;
21 } 25 }
22 </style> 26 </style>
23 <div id="scroller"> 27 <div id="scroller" class="composited">
24 <div class="sticky"></div> 28 <div class="composited sticky"></div>
25 <div class="spacer"></div> 29 <div class="spacer"></div>
26 </div> 30 </div>
OLDNEW
« no previous file with comments | « third_party/WebKit/LayoutTests/compositing/overflow/composited-sticky-element.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698