1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
2 <html>
3 <head>
4 <title>CSS Test: Block boxes within inline boxes are affected by positioning</title>
5 <link rel="author" title="Microsoft" href="http://www.microsoft.com/">
6 <link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#anonymous-block-level">
7 <meta name="flags" content="">
8 <meta name="assert" content="Block boxes within inline boxes are also affected by relative positioning on the inline box.">
9 <style type="text/css">
10 #div1
11 {
12 background: yellow;
13 height: 2in;
14 position: relative;
15 width: 2in;
16 }
17 #div2
18 {
19 background: blue;
20 display: inline;
21 position: relative;
22 top: 2in;
23 }
24 #div3
25 {
26 background: orange;
27 width: 2in;
28 }
29 </style>
30 </head>
31 <body>
32 <p>Test passes if the orange box is between the two blue boxes and all three boxes are below the yellow box.</p>
33 <div id="div1">
34 <div id="div2">
35 Filler Text
36 <div id="div3">Filler Text</div>
37 Filler Text
38 </div>
39 </div>
40 </body>
41 </html>