| 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 a block with an inline ancestor respects its relative p
ositioning. --> | 3 <!-- This tests that a block with an inline ancestor respects its relative p
ositioning. --> |
| 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 position: relative; | 12 position: relative; |
| 12 display: inline; | 13 display: inline; |
| 13 width: 2in; | 14 width: 2in; |
| 14 left: 2in; | 15 left: 2in; |
| 15 top: 2in; | 16 top: 2in; |
| 16 } | 17 } |
| (...skipping 13 matching lines...) Expand all Loading... |
| 30 <p>Test passes if the orange box sits atop the blue box and both are in
the center of the view.</p> | 31 <p>Test passes if the orange box sits atop the blue box and both are in
the center of the view.</p> |
| 31 <span id="span1"> | 32 <span id="span1"> |
| 32 <span id="span2"> | 33 <span id="span2"> |
| 33 <i> | 34 <i> |
| 34 <div id="div3">Filler Text</div> | 35 <div id="div3">Filler Text</div> |
| 35 Filler Text | 36 Filler Text |
| 36 </i> | 37 </i> |
| 37 </span> | 38 </span> |
| 38 </span> | 39 </span> |
| 39 </body> | 40 </body> |
| 40 </html> | 41 </html> |
| OLD | NEW |