mirror of
https://github.com/servo/servo
synced 2026-04-28 18:37:39 +02:00
48 lines
1.6 KiB
HTML
48 lines
1.6 KiB
HTML
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
|
|
<html>
|
|
<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="flags" content="">
|
|
<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> |