|
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 - inline with margins</title> |
|
7 <link rel="author" title="Corey Ford" href="mailto:corey@coreyford.name"> |
|
8 <link rel="match" href="inline-3-ref.html"> |
|
9 <meta name="assert" content="Sticky positioning on inline elements should keep the bounding box of all continuations' margin boxes contained"> |
|
10 <link rel="stylesheet" type="text/css" href="ahem.css"> |
|
11 <style> |
|
12 #scroll { |
|
13 overflow: hidden; |
|
14 height: 200px; |
|
15 font: 10px/1 Ahem; |
|
16 } |
|
17 #sticky { |
|
18 position: sticky; |
|
19 left: 20px; |
|
20 margin-right: 10px; |
|
21 } |
|
22 #contain { |
|
23 width: 100px; |
|
24 } |
|
25 </style> |
|
26 </head> |
|
27 <body> |
|
28 <div id="scroll"> |
|
29 <div id="contain"> |
|
30 test <span id="sticky">test<br>test</span> |
|
31 </div> |
|
32 </div> |
|
33 </body> |
|
34 </html> |