| OLD | NEW |
| 1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/st
rict.dtd"> | 1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/st
rict.dtd"> |
| 2 <html> | 2 <html> |
| 3 <!-- This tests that toggling an inline's position to relative updates the p
osition of any child blocks. --> | 3 <!-- This tests that toggling an inline's position to relative updates the p
osition of any child blocks. --> |
| 4 <head> | 4 <head> |
| 5 <title>CSS Test: Block boxes within inline boxes are affected by positio
ning</title> | 5 <title>CSS Test: Block boxes within inline boxes are affected by positio
ning</title> |
| 6 <style type="text/css"> | 6 <style type="text/css"> |
| 7 body { overflow: hidden; } |
| 7 #span1 | 8 #span1 |
| 8 { | 9 { |
| 9 background: yellow; | 10 background: yellow; |
| 10 height: 2in; | 11 height: 2in; |
| 11 display: inline; | 12 display: inline; |
| 12 width: 2in; | 13 width: 2in; |
| 13 left: 2in; | 14 left: 2in; |
| 14 top: 2in; | 15 top: 2in; |
| 15 } | 16 } |
| 16 #span2 | 17 #span2 |
| (...skipping 25 matching lines...) Expand all Loading... |
| 42 </head> | 43 </head> |
| 43 <body onload="setTimeout('run()', 10);"> | 44 <body onload="setTimeout('run()', 10);"> |
| 44 <p>Test passes if the orange box sits atop the blue box and both are in
the center of the view.</p> | 45 <p>Test passes if the orange box sits atop the blue box and both are in
the center of the view.</p> |
| 45 <span id="span2"> | 46 <span id="span2"> |
| 46 <i> | 47 <i> |
| 47 <div id="div3">Filler Text</div> | 48 <div id="div3">Filler Text</div> |
| 48 Filler Text | 49 Filler Text |
| 49 </i> | 50 </i> |
| 50 </span> | 51 </span> |
| 51 </body> | 52 </body> |
| 52 </html> | 53 </html> |
| OLD | NEW |