blob: 8dbda113dc99ca8e4d76cafded04f67b218f72dc [file] [log] [blame]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
<html lang="en">
<head>
<title>Margin Collapsing: in flow (height, block-inside-inline version)</title>
<style type="text/css">
table { border-spacing: 0; font-size: 50px; border: solid; background: red; }
td { padding: 0; width: 1em; }
div { background: lime; }
.a .container { height: 1em; height: 1.1em; }
.a .sized { height: 1.0em; margin: 0 0 1em 0; }
.a .after { height: 0.9em; }
.b .container { height: 1em; height: 1.0em; }
.b .sized { height: 1.0em; margin: 0 0 1em 0; }
.b .after { height: 1.0em; }
.c .container { height: 1em; height: 0.9em; }
.c .sized { height: 1.0em; margin: 0 0 1em 0; }
.c .after { height: 1.1em; }
</style>
</head>
<body>
<p>There should be no red on this page.</p>
<table>
<tr>
<td class="a">
<span><div class="container">
<span><div class="sized"></div></span>
</div></span>
<span><div class="after"></div></span>
</td>
<td class="b">
<span><div class="container">
<span><div class="sized"></div></span>
</div></span>
<span><div class="after"></div></span>
</td>
<td class="c">
<span><div class="container">
<span><div class="sized"></div></span>
</div></span>
<span><div class="after"></div></span>
</td>
</tr>
</table>
<p>See also: <a href="http://www.hixie.ch/tests/adhoc/css/box/block/height/002.html">prerequisite</a>.</p>
</body>
</html>