42 lines
1.2 KiB
HTML
42 lines
1.2 KiB
HTML
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
|
|
<html lang="en">
|
|
<head>
|
|
<title>Margin Collapsing: in flow (height, simple) - not really margin collapsing</title>
|
|
<style type="text/css">
|
|
table { border-spacing: 0; font-size: 50px; border: solid; background: red; }
|
|
td { padding: 0; width: 1em; background: red; }
|
|
|
|
.a { background: orange; }
|
|
.a .container { height: 1em; background: red; }
|
|
.a .sized { height: 3em; margin: 0 0 1em 0; background: aqua; }
|
|
.a .after { height: 1em; margin: 0 0 1em 0; background: yellow; }
|
|
|
|
.b .a { border-top: solid aqua 1em; }
|
|
.b .b { border-top: solid yellow 1em; }
|
|
.b .c { border-top: solid aqua 1em; }
|
|
.b .d { border-top: solid orange 1em; }
|
|
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<p>There should be no red on this page.</p>
|
|
<table>
|
|
<tr>
|
|
<td class="a">
|
|
<div class="container">
|
|
<div class="sized"></div>
|
|
</div>
|
|
<div class="after"></div>
|
|
</td>
|
|
<td class="b">
|
|
<div class="a"></div>
|
|
<div class="b"></div>
|
|
<div class="c"></div>
|
|
<div class="d"></div>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<p>This test is irrelevant if you don't pass <a href="056.html#">test 056</a>.</p>
|
|
</body>
|
|
</html>
|