robert@webkit.org | ce470bd | 2012-08-30 18:15:13 +0000 | [diff] [blame] | 1 | <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> |
| 2 | <html> |
| 3 | |
| 4 | <head> |
| 5 | |
| 6 | <title>CSS Test: Margin collapsing with clearance - margins of a 'collapsed through' box with clearance do not collapse with parent block's bottom margin</title> |
| 7 | |
| 8 | <style type="text/css"> |
| 9 | |
| 10 | #parent-red |
| 11 | { |
| 12 | background-color: lime; |
| 13 | border-top: black solid 2px; |
| 14 | width: 50%; |
| 15 | height: 130px; |
| 16 | } |
| 17 | #parent-lime |
| 18 | { |
| 19 | background-color: yellow; |
| 20 | height: 20px; |
| 21 | width: 50%; |
| 22 | } |
| 23 | |
| 24 | </style> |
| 25 | |
| 26 | </head> |
| 27 | |
| 28 | <body> |
| 29 | |
| 30 | <p>Test passes if there is a yellow rectangle below the lime rectangle.</p> |
| 31 | |
| 32 | <div id="parent-red"></div> |
| 33 | <div id="parent-lime"></div> |
| 34 | </body> |
| 35 | </html> |