comparison: layout/reftests/abs-pos/table-internal-3-ref.html
layout/reftests/abs-pos/table-internal-3-ref.html
- branch
- TOR_BUG_9701
- changeset 14
- 925c144e1f1f
equal
deleted
inserted
replaced
|
1 <!DOCTYPE html> |
|
2 <html> |
|
3 <head> |
|
4 <style> |
|
5 table { |
|
6 width: 300px; |
|
7 height: 300px; |
|
8 background-color: blue; |
|
9 } |
|
10 td { |
|
11 margin: 0; |
|
12 padding: 0; |
|
13 } |
|
14 #rel { |
|
15 position: relative; |
|
16 margin: 0; |
|
17 padding: 0; |
|
18 } |
|
19 #abs { |
|
20 position: absolute; |
|
21 margin: 0; |
|
22 padding: 0; |
|
23 top: 25px; |
|
24 left: 25px; |
|
25 width: 50px; |
|
26 height: 50px; |
|
27 background-color: green; |
|
28 } |
|
29 </style> |
|
30 </head> |
|
31 <body> |
|
32 The green square should not touch the blue square. |
|
33 <table> |
|
34 <tr> |
|
35 <td></td> |
|
36 <td></td> |
|
37 </tr> |
|
38 <tr style="height: 100%"> |
|
39 <td></td> |
|
40 <td></td> |
|
41 </tr> |
|
42 <tr> |
|
43 <td> |
|
44 <div id="rel"> |
|
45 <div id="abs"></div> |
|
46 </div> |
|
47 </td> |
|
48 <td></td> |
|
49 </tr> |
|
50 </table> |
|
51 </body> |
|
52 </html> |