mirror of
https://github.com/servo/servo
synced 2026-04-28 18:37:39 +02:00
43 lines
1.4 KiB
HTML
43 lines
1.4 KiB
HTML
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
|
|
<html>
|
|
<head>
|
|
<title>CSS Test: The anonymous block box around a table and the table 'margin-top' property</title>
|
|
<link rel="author" title="Microsoft" href="http://www.microsoft.com/">
|
|
<link rel="help" href="http://www.w3.org/TR/CSS21/tables.html#model">
|
|
<meta name="flags" content="">
|
|
<meta name="assert" content="The 'margin-top' property of a table is actually applied to its anonymous block box.">
|
|
<style type="text/css">
|
|
div
|
|
{
|
|
border-top: 5px solid black;
|
|
width: 200px;
|
|
}
|
|
table
|
|
{
|
|
border-spacing: 0;
|
|
margin-top: 100px;
|
|
}
|
|
caption
|
|
{
|
|
background: orange;
|
|
color: orange;
|
|
}
|
|
td
|
|
{
|
|
background: blue;
|
|
color: blue;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<p>Test passes if the blue box is directly beneath the orange box and neither box is touching the black line.</p>
|
|
<div>
|
|
<table>
|
|
<caption>Filler Text Filler Text</caption>
|
|
<tr>
|
|
<td>Filler Text Filler Text</td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
</body>
|
|
</html> |