Source code

Revision control

Copy as Markdown

Other Tools

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<head>
<title>CSS Test: Cells with collapsed white space content are considered empty</title>
<link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
<meta name="assert" content="Cells that contain in-flow content of white space which has been collapsed away by the 'white-space' property are considered to be empty cells." />
<style type="text/css">
table
{
background: green;
border-spacing: 0;
empty-cells: hide;
white-space: normal;
}
td
{
background: green;
color: green;
padding: 0;
}
.red
{
background: red;
}
</style>
</head>
<body>
<p>Test passes if there is no red visible on the page.</p>
<table>
<tr>
<td class="red">
</td>
<td>FillerTextFillerText</td>
</tr>
<tr>
<td>FillerTextFillerText</td>
<td class="red">
</td>
</tr>
</table>
</body>
</html>