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

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

Issue 2486393006: Include the source_to_parent offset when removing offset applied by main. (Closed)
Patch Set: Add unit test LayerTreeHostCommonTest.StickyPositionTopScrollParent Created 4 years, 1 month 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 <script>
2 onload = function() {
3 scroller.scrollTop = 100;
4 }
5 </script>
6 <style>
7 #scroller {
8 /* Opaque background means scroller is composited. */
9 background: white;
10 height: 200px;
11 overflow: auto;
12 width: 200px;
13 }
14 .sticky {
15 position: sticky;
16 top: 0;
17 height: 50px;
18 /* Opaque background means sticky element is composited. */
19 background: green;
20 }
21 .spacer {
22 height: 2000px;
23 }
24 </style>
25 <div id="scroller">
26 <div class="sticky"></div>
27 <div class="spacer"></div>
28 </div>
OLDNEW
« no previous file with comments | « cc/trees/property_tree.cc ('k') | third_party/WebKit/LayoutTests/compositing/overflow/composited-sticky-element-expected.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698