OLD | NEW |
1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/st
rict.dtd"> | 1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/st
rict.dtd"> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <title>CSS Test: Margin collapsing - absolute positioning and siblings</
title> | 4 <title>CSS Test: Margin collapsing - absolute positioning and siblings</
title> |
| 5 <script src="../../resources/ahem.js"></script> |
5 <link rel="help" href="http://www.w3.org/TR/CSS21/box.html#collapsing-ma
rgins"> | 6 <link rel="help" href="http://www.w3.org/TR/CSS21/box.html#collapsing-ma
rgins"> |
6 <meta name="flags" content="ahem image"> | 7 <meta name="flags" content="ahem image"> |
7 <meta name="assert" content="Absolutely positioned boxes do not collapse
margins with siblings."> | 8 <meta name="assert" content="Absolutely positioned boxes do not collapse
margins with siblings."> |
8 <style type="text/css"> | 9 <style type="text/css"> |
9 #div1 | 10 #div1 |
10 { | 11 { |
11 border-top: 1em solid green; | 12 border-top: 1em solid green; |
12 font: 20px/1em Ahem; | 13 font: 20px/1em Ahem; |
13 height: 2em; | 14 height: 2em; |
14 width: 5em; | 15 width: 5em; |
15 border-bottom: 1em solid green; | 16 border-bottom: 1em solid green; |
16 } | 17 } |
17 </style> | 18 </style> |
18 </head> | 19 </head> |
19 <body> | 20 <body> |
20 <p>Test passes if there is no red visible on the page.</p> | 21 <p>Test passes if there is no red visible on the page.</p> |
21 <div id="div1"> | 22 <div id="div1"> |
22 </div> | 23 </div> |
23 </body> | 24 </body> |
24 </html> | 25 </html> |
OLD | NEW |