| OLD | NEW |
| (Empty) |
| 1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/st
rict.dtd"> | |
| 2 <html> | |
| 3 <head> | |
| 4 <title>CSS Test: Block boxes within inline boxes are affected by positio
ning</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 af
fected 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 position: relative; | |
| 27 top: 2in; | |
| 28 background: orange; | |
| 29 width: 2in; | |
| 30 } | |
| 31 </style> | |
| 32 </head> | |
| 33 <body> | |
| 34 <p>Test passes if the orange box is between the two blue boxes and all t
hree boxes are below the yellow box.</p> | |
| 35 <div id="div1"> | |
| 36 <span id="div2">Filler Text</span> | |
| 37 <div id="div3">Filler Text</div> | |
| 38 <span id="div2">Filler Text</span> | |
| 39 </div> | |
| 40 </body> | |
| 41 </html> | |
| OLD | NEW |