gecko/layout/html/tests/block/bugs/185411-2.html

26 lines
841 B
HTML

<!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>