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 descended from an inline respects the positioni
ng of an inline ancestor when it gets relatively positioned. --> | 3 <!-- This tests that a block descended from an inline respects the positioni
ng of an inline ancestor when it gets relatively positioned. --> |
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 24 matching lines...) Expand all Loading... |
41 <p>Test passes if the orange box sits atop the blue box and both are in
the center of the view.</p> | 42 <p>Test passes if the orange box sits atop the blue box and both are in
the center of the view.</p> |
42 <span id="span1"> | 43 <span id="span1"> |
43 <span id="span2"> | 44 <span id="span2"> |
44 <i> | 45 <i> |
45 <div id="div3">Filler Text</div> | 46 <div id="div3">Filler Text</div> |
46 Filler Text | 47 Filler Text |
47 </i> | 48 </i> |
48 </span> | 49 </span> |
49 </span> | 50 </span> |
50 </body> | 51 </body> |
51 </html> | 52 </html> |
OLD | NEW |