mirror of
https://github.com/servo/servo
synced 2026-04-28 18:37:39 +02:00
57 lines
2.0 KiB
HTML
57 lines
2.0 KiB
HTML
<!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><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
|
|
<title>CSS Test: Collapsing borders model row width equation (auto layout) - subsequent rows with wider borders variation</title>
|
|
<style type="text/css">
|
|
@page { font: italic 8pt sans-serif; color: gray;
|
|
margin: 7%;
|
|
counter-increment: page;
|
|
@top-left { content: "CSS 2.1 Conformance Test Suite"; }
|
|
@top-right { content: "Test collapsing-border-model-002"; }
|
|
@bottom-right { content: counter(page); }
|
|
}
|
|
</style>
|
|
<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> |