blob: a7eba7b33ba5f9c1db46e1156f4debcf66d9dd3f [file] [log] [blame]
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<!-- This tests that blocks nested with multiple relative positioned inline ancestors are positioned correctly. -->
<head>
<title>CSS Test: Block boxes within inline boxes are affected by positioning</title>
<style type="text/css">
#div1
{
background: yellow;
height: 2in;
position: relative;
width: 2in;
}
#div2
{
background: blue;
display: inline;
position: relative;
top: 2in;
}
#div3
{
background: orange;
width: 2in;
}
</style>
</head>
<body>
<p>Test passes if each orange box is between two blue boxes and all orange and blue boxes are below the yellow box.</p>
<div id="div1">
<div id="div2">
Filler Text
<div id="div3">Filler Text</div>
<div id="div2">
Filler Text
<div id="div3">Filler Text</div>
Filler Text
</div>
<div id="div3">Filler Text</div>
Filler Text
</div>
</div>
</body>
</html>