40 lines
1.1 KiB
HTML
40 lines
1.1 KiB
HTML
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
|
|
<html lang="en">
|
|
<head>
|
|
<title>Margin Collapsing: in flow (simple)</title>
|
|
<style type="text/css">
|
|
table { border-spacing: 0; font: 50px/1 Ahem; border: solid; background: red; }
|
|
td { padding: 0; }
|
|
/* test */
|
|
.test { background: orange; }
|
|
.test div { margin: 1em 0; background: red; height: 1em; width: 1em; }
|
|
.test .a { background: yellow; }
|
|
.test .b { background: lime; }
|
|
/* control */
|
|
.control div { width: 1em; }
|
|
.control .c { border-top: 1em orange solid; }
|
|
.control .a { border-top: 1em yellow solid; }
|
|
.control .b { border-top: 1em lime solid; }
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<p>The following two columns should be pixel perfect identical with no red visible.</p>
|
|
<table>
|
|
<tr>
|
|
<td class="test">
|
|
<div class="a"></div>
|
|
<div class="b"></div>
|
|
</td>
|
|
<td class="control">
|
|
<div class="c"></div>
|
|
<div class="a"></div>
|
|
<div class="c"></div>
|
|
<div class="b"></div>
|
|
<div class="c"></div>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<p>This test is meaningless if you don't pass <a href="006.html#">test 006</a>.</p>
|
|
</body>
|
|
</html>
|