Thu, 15 Jan 2015 21:03:48 +0100
Integrate friendly tips from Tor colleagues to make (or not) 4.5 alpha 3;
This includes removal of overloaded (but unused) methods, and addition of
a overlooked call to DataStruct::SetData(nsISupports, uint32_t, bool.)
1 <!DOCTYPE html>
2 <!-- Any copyright is dedicated to the Public Domain.
3 - http://creativecommons.org/publicdomain/zero/1.0/ -->
4 <html>
5 <head>
6 <title>CSS Test: Sticky Positioning - block inside inline, stuck position</title>
7 <link rel="author" title="L. David Baron" href="mailto:dbaron@mozilla.com">
8 <link rel="match" href="block-in-inline-2-ref.html">
9 <meta name="assert" content="Inline elements split because they contain blocks should always have all parts moved the same offset from their normal position">
10 <link rel="stylesheet" type="text/css" href="ahem.css">
11 <style>
12 #scroll {
13 height: 100px;
14 overflow: hidden;
15 font: 20px/1 Ahem;
16 }
17 #contain {
18 height: 100px;
19 }
20 #sticky {
21 display: inline;
22 position: sticky;
23 top: 10px;
24 }
25 </style>
26 </head>
27 <body>
28 <div id="scroll">
29 <div style="height: 20px"></div>
30 <div id="contain">
31 before inline
32 <div id="sticky">
33 before block
34 <div>in block</div>
35 after block
36 </div>
37 after inline
38 </div>
39 <div style="height: 100px"></div>
40 </div>
41 <script type="application/javascript">
42 document.getElementById("scroll").scrollTop = 30;
43 </script>
44 </body>
45 </html>