Add testcases for bug 185411.

This commit is contained in:
dbaron%dbaron.org 2004-01-23 21:41:52 +00:00
parent 56bd2e4e15
commit 980b6629b7
4 changed files with 113 additions and 0 deletions

View File

@ -0,0 +1,61 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html lang="en-US">
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="Content-Style-Type" content="text/css">
<style type="text/css">
table { margin-left: auto; margin-right: auto; }
table:last-child { margin-right: 0; }
table:first-child { margin-left: 0; }
div.constrained {
border: medium solid;
width: 20px;
margin: auto;
}
</style>
</head>
<body>
<div>
<table border><tr><td>ABCDE</td></tr></table>
<table border><tr><td>ABCDE</td></tr></table>
<table border><tr><td>ABCDE</td></tr></table>
</div>
<div>
<table border width="5"><tr><td>ABCDE</td></tr></table>
<table border width="5"><tr><td>ABCDE</td></tr></table>
<table border width="5"><tr><td>ABCDE</td></tr></table>
</div>
<div>
<table border width="300"><tr><td>ABCDE</td></tr></table>
<table border width="300"><tr><td>ABCDE</td></tr></table>
<table border width="300"><tr><td>ABCDE</td></tr></table>
</div>
<div class="constrained">
<table border><tr><td>ABCDE</td></tr></table>
<table border><tr><td>ABCDE</td></tr></table>
<table border><tr><td>ABCDE</td></tr></table>
</div>
<div class="constrained">
<table border width="5"><tr><td>ABCDE</td></tr></table>
<table border width="5"><tr><td>ABCDE</td></tr></table>
<table border width="5"><tr><td>ABCDE</td></tr></table>
</div>
<div class="constrained">
<table border width="300"><tr><td>ABCDE</td></tr></table>
<table border width="300"><tr><td>ABCDE</td></tr></table>
<table border width="300"><tr><td>ABCDE</td></tr></table>
</div>
</body>
</html>

View File

@ -0,0 +1,25 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
<title>Inconsistency testcase</title>
<style type="text/css">
div { margin-left: auto; margin-right: auto; margin-top: 1em; }
</style>
</head>
<body>
<p>All divs have margin-left and margin-right set to auto.<p>
<div style="width: 400px; border: 4px dashed green;">
<p style="text-align: center; font-weight: bold;">Containing block (400px)</p>
<div style="width: 500px; border-top: solid thin red; border-bottom: solid thin red;">
500px-wide div without left or right border
</div>
<div style="width: 500px; border: solid thin red;">
500px-wide div with left and right border
</div>
</div>
</body>
</html>

View File

@ -0,0 +1,24 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Apple - iPod</title>
</head>
<body>
<table width="100%" border="0" cellpadding="0" cellspacing="0" id="tabs">
<tr>
<td width="49%"><img src="logo-star.gif" width="1" height="52" alt=""></td>
<td width="2%" align="center">
<table width="725" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="725"><img src="logo-star.gif" width="725" height="32" alt=""></td>
</tr>
</table>
</td>
<td width="49%"><img src="logo-star.gif" width="1" height="52" alt=""></td>
</tr>
</table>
</body>
</html>

View File

@ -203,6 +203,9 @@ file:///s:/mozilla/layout/html/tests/block/bugs/161644.html
file:///s:/mozilla/layout/html/tests/block/bugs/169620.html
file:///s:/mozilla/layout/html/tests/block/bugs/176423.html
file:///s:/mozilla/layout/html/tests/block/bugs/177331.html
file:///s:/mozilla/layout/html/tests/block/bugs/185411-1.html
file:///s:/mozilla/layout/html/tests/block/bugs/185411-2.html
file:///s:/mozilla/layout/html/tests/block/bugs/185411-3.html
file:///s:/mozilla/layout/html/tests/block/bugs/196919.html
file:///s:/mozilla/layout/html/tests/block/bugs/215857.html
file:///s:/mozilla/layout/html/tests/block/bugs/223394-1.html