blob: 56340242dbd162ac4cf19895253f8993c8cceb36 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
<!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>
|