blob: 87353e035a1fc1bff82e91e2a8d25279e2fb6de2 [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
<style>
body {
margin: 0px;
}
.hidTarget
{
height: 100px;
width: 250px;
position: absolute;
left: 50px;
background-color: green;
}
.sized
{
margin-left: 100px;
width: 200px;
}
.marginLeft
{
font: Ahem 10px;
height: 100px;
margin-left: -25%;
background-color: red;
}
p
{
position: absolute;
top: 300px;
}
</style>
</head>
<body>
<div class="hidTarget"></div>
<div align="center" class="sized">
<div class="marginLeft">xxxxx xxxxx xxxxx xxxxx</div>
</div>
<p>
<a href="https://bugs.webkit.org/show_bug.cgi?id=89626">89626</a>: Non-fixed length margins don't work with align=center<br>
There should be a green rectangle above with no red.
</p>
</body>
</html>