| OLD | NEW |
| (Empty) | |
| 1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/x
html1/DTD/xhtml1-strict.dtd"> |
| 2 <html xmlns="http://www.w3.org/1999/xhtml"> |
| 3 <head> |
| 4 <title>CSS Test: Relative positioning and computed values when 'bottom'
is set to 'auto'</title> |
| 5 <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> |
| 6 <link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#relative-
positioning" /> |
| 7 <link rel="match" href="position-relative-018-ref.xht" /> |
| 8 |
| 9 <meta name="flags" content="" /> |
| 10 <meta name="assert" content="Computed value of 'bottom' set to 'auto' is
equal to negative 'top'." /> |
| 11 <style type="text/css"> |
| 12 .parent |
| 13 { |
| 14 width: 0.5in; |
| 15 float: left; |
| 16 } |
| 17 div div |
| 18 { |
| 19 background: black; |
| 20 height: 1in; |
| 21 position: relative; |
| 22 width: 0.5in; |
| 23 } |
| 24 #div1 |
| 25 { |
| 26 bottom: auto; |
| 27 top: 1in; |
| 28 } |
| 29 #div2 |
| 30 { |
| 31 bottom: -1in; |
| 32 top: auto; |
| 33 } |
| 34 </style> |
| 35 </head> |
| 36 <body> |
| 37 <p>Test passes if there is only one filled black square.</p> |
| 38 <div class="parent"> |
| 39 <div id="div1"></div> |
| 40 </div> |
| 41 <div class="parent"> |
| 42 <div id="div2"></div> |
| 43 </div> |
| 44 </body> |
| 45 </html> |
| OLD | NEW |