Fri, 16 Jan 2015 18:13:44 +0100
Integrate suggestion from review to improve consistency with existing code.
1 <!DOCTYPE html>
2 <!-- Any copyright is dedicated to the Public Domain.
3 - http://creativecommons.org/publicdomain/zero/1.0/ -->
4 <!-- -->
5 <html>
6 <head>
7 <title>CSS Test: Sticky Positioning - bottom, stuck</title>
8 <link rel="author" title="Corey Ford" href="mailto:cford@mozilla.com">
9 <link rel="match" href="bottom-2-ref.html">
10 <meta name="assert" content="Bottom-sticky with content above: should stick at the bottom of the scroll container">
11 <style>
12 #scroll {
13 height: 100px;
14 overflow: hidden;
15 }
16 #sticky {
17 position: sticky;
18 bottom: 10px;
19 height: 10px;
20 background-color: black;
21 }
22 </style>
23 </head>
24 <body>
25 <div id="scroll">
26 <div style="height: 200px"></div>
27 <div id="sticky"></div>
28 </div>
29 </body>
30 </html>