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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/css/sticky/sticky-both-sides-2-expected.html

Issue 2788053002: Fix sticky bottom is not applied with both sticky position (Closed)
Patch Set: Created 3 years, 8 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
3 <html>
4 <head>
5 <style>
6 body {
7 margin: 0;
8 width: 5000px;
9 overflow: hidden; /* hide scrollbars */
10 }
11
12 .container {
13 position: absolute;
14 width: 5000px;
15 height: 180px;
16 top: 100px;
17 outline: 2px solid black;
18 }
19
20 .vertical.container {
21 top: 0px;
22 left: 100px;
23 width: 180px;
24 height: 5000px;
25 }
26
27 .box {
28 width: 300px;
29 height: 180px;
30 }
31
32 .vertical .box {
33 width: 180px;
34 height: 300px;
35 }
36
37 .sticky {
38 position: sticky;
39 right: 50px;
40 background-color: green;
41 }
42
43 .vertical .sticky {
44 position: sticky;
45 bottom: 50px;
46 background-color: blue;
47 opacity: 0.75;
48 }
49 .space {
50 width:2000px;
51 height:100%;
52 background-color: grey;
53 opacity: 0.1;
54 }
55 .vertical .space {
56 height:2000px;
57 background-color: grey;
58 opacity: 0.1;
59 }
60 .inline {
61 display: inline-block;
62 }
63 </style>
64 </head>
65 <body>
66 <div class="container">
67 <div class="space inline"></div>
68 <div class="sticky box inline"></div>
69 </div>
70 <div class="vertical container">
71 <div class="vertical space"></div>
72 <div class="sticky box"></div>
73 </div>
74
75 </body>
76 </html>
77
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698