| 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 the positioning of a block that has a relatively positio
ned parent and grandparent remains relative when | 3 <!--This tests that the positioning of a block that has a relatively positio
ned parent and grandparent remains relative when |
| 4 the positioning of the parent is toggled to static. --> | 4 the positioning of the parent is toggled to static. --> |
| 5 <head> | 5 <head> |
| 6 <title>CSS Test: Block boxes within inline boxes are affected by positio
ning</title> | 6 <title>CSS Test: Block boxes within inline boxes are affected by positio
ning</title> |
| 7 <style type="text/css"> | 7 <style type="text/css"> |
| 8 body { overflow: hidden; } |
| 8 #span1 | 9 #span1 |
| 9 { | 10 { |
| 10 background: yellow; | 11 background: yellow; |
| 11 height: 2in; | 12 height: 2in; |
| 12 display: inline; | 13 display: inline; |
| 13 position: relative; | 14 position: relative; |
| 14 width: 2in; | 15 width: 2in; |
| 15 left: 2in; | 16 left: 2in; |
| 16 top: 2in; | 17 top: 2in; |
| 17 } | 18 } |
| (...skipping 27 matching lines...) Expand all Loading... |
| 45 <p>Test passes if the orange box sits atop the blue box and both are in
the center of the view.</p> | 46 <p>Test passes if the orange box sits atop the blue box and both are in
the center of the view.</p> |
| 46 <span id="span1"> | 47 <span id="span1"> |
| 47 <span id="span2"> | 48 <span id="span2"> |
| 48 <i> | 49 <i> |
| 49 <div id="div3">Filler Text</div> | 50 <div id="div3">Filler Text</div> |
| 50 Filler Text | 51 Filler Text |
| 51 </i> | 52 </i> |
| 52 </span> | 53 </span> |
| 53 </span> | 54 </span> |
| 54 </body> | 55 </body> |
| 55 </html> | 56 </html> |
| OLD | NEW |