| OLD | NEW |
| (Empty) | |
| 1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/
DTD/xhtml11.dtd"> |
| 2 <html xmlns="http://www.w3.org/1999/xhtml"> |
| 3 <head> |
| 4 <title>CSS Test: CSS Blocks: Margin Collapsing</title> |
| 5 <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> |
| 6 <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/Browse
rBugsSection/css21testsuite/" /> <!-- 2012-12-12 --> |
| 7 <link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/box/block/007.
xml" type="application/xhtml+xml"/> |
| 8 <link rel="help" href="http://www.w3.org/TR/CSS21/box.html#collapsing-margins"
/> |
| 9 <link rel="match" href="../tables/reference/table-margin-004-ref.xht" /> |
| 10 |
| 11 <meta name="flags" content="ahem" /> |
| 12 |
| 13 <style type="text/css"><![CDATA[ |
| 14 div { |
| 15 border: solid blue; |
| 16 height: 180px; |
| 17 } |
| 18 div > * { |
| 19 margin: 1em; |
| 20 height: 1em; |
| 21 display: block; |
| 22 font: 20px/1 Ahem; |
| 23 } |
| 24 table { border-spacing: 0; } |
| 25 |
| 26 td { padding: 0; } |
| 27 ]]></style> |
| 28 </head> |
| 29 <body> |
| 30 <p>Test passes if there are 4 black bars which do not overflow a wide blue rec
tangle. The black bars are evenly distributed (vertically) in the blue rectangle
: the gap between the blue border at the top and the first black bar should be e
qual to the gap between the 4th bar and the blue border at the bottom.</p> |
| 31 |
| 32 <div> |
| 33 <table><tr><td>Test</td></tr></table> |
| 34 <table><tr><td>Test</td></tr></table> |
| 35 <p>Test</p> |
| 36 <p>Test</p> |
| 37 </div> |
| 38 |
| 39 </body> |
| 40 </html> |
| OLD | NEW |