blob: d7b25278406e57d34851bed11273abf2e797974a (
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
40
41
42
43
44
45
46
47
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>CSS Test: Collapsing borders model row width equation (auto layout) - subsequent rows with wider borders variation</title>
<link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
<link rel="help" href="http://www.w3.org/TR/CSS21/tables.html#collapsing-borders" />
<meta name="assert" content="Rows which have wider borders than those of the first table row have their borders spill into the table margins." />
<style type="text/css">
table
{
border: 10px solid red;
border-collapse: collapse;
margin: 15px;
}
td
{
background: blue;
border: 20px solid blue;
padding: 20px;
}
.cell
{
border: 50px solid black;
}
div
{
background: blue;
position: absolute;
}
</style>
</head>
<body>
<p>Test passes if the top and bottom blue boxes are the same width as the black box, and there is no red visible on the page.</p>
<div>
<table>
<tr>
<td></td>
<td></td>
</tr>
<tr>
<td class="cell"></td>
<td class="cell"></td>
</tr>
</table>
</div>
</body>
</html>
|