Files
servo/tests/wpt/css-tests/css21_dev/html4/collapsing-border-model-008.htm

45 lines
1.3 KiB
HTML

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>CSS Test: Right table border width under collapsing borders model</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="The right border width of the table is half of the collapsed right border width of the last cell of the first row.">
<style type="text/css">
table
{
background: blue;
border-collapse: collapse;
}
col
{
width: 1in;
}
td, #div1
{
height: 1in;
}
td
{
border-right: 1in solid blue;
padding: 0;
}
#div1
{
background: orange;
width: 1.5in;
}
</style>
</head>
<body>
<p>Test passes if the orange and blue boxes below are the same width.</p>
<div id="div1"></div>
<table>
<col>
<tr>
<td></td>
</tr>
</table>
</body>
</html>