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 respects the positioning of a relative position
ed inline parent when a relative | 3 <!-- This tests that a block respects the positioning of a relative position
ed inline parent when a relative |
4 positioned inline ancestor gets toggled to static. --> | 4 positioned inline ancestor gets 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 width: 2in; | 14 width: 2in; |
14 left: 2in; | 15 left: 2in; |
15 top: 2in; | 16 top: 2in; |
16 position: relative; | 17 position: relative; |
17 } | 18 } |
(...skipping 28 matching lines...) Expand all Loading... |
46 <p>Test passes if the orange box sits atop the blue box and both are in
the center of the view.</p> | 47 <p>Test passes if the orange box sits atop the blue box and both are in
the center of the view.</p> |
47 <span id="span1"> | 48 <span id="span1"> |
48 <span id="span2"> | 49 <span id="span2"> |
49 <i> | 50 <i> |
50 <div id="div3">Filler Text</div> | 51 <div id="div3">Filler Text</div> |
51 Filler Text | 52 Filler Text |
52 </i> | 53 </i> |
53 </span> | 54 </span> |
54 </span> | 55 </span> |
55 </body> | 56 </body> |
56 </html> | 57 </html> |
OLD | NEW |