| 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 <head> | 3 <head> |
| 4 <title>CSS Test: Inline non-replaced elements with 'auto' value for 'lef
t', 'right', and 'margin-right'</title> | 4 <title>CSS Test: Inline non-replaced elements with 'auto' value for 'lef
t', 'right', and 'margin-right'</title> |
| 5 <link rel="author" title="Microsoft" href="http://www.microsoft.com/"> | 5 <link rel="author" title="Microsoft" href="http://www.microsoft.com/"> |
| 6 <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#inline-wi
dth"> | 6 <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#inline-wi
dth"> |
| 7 <meta name="flags" content="ahem"> | 7 <meta name="flags" content="ahem"> |
| 8 <script src="../../resources/ahem.js"></script> |
| 8 <meta name="assert" content="Computed value of 'auto' for 'left', 'right
', and 'margin-right' becomes a used value of '0'."> | 9 <meta name="assert" content="Computed value of 'auto' for 'left', 'right
', and 'margin-right' becomes a used value of '0'."> |
| 9 <style type="text/css"> | 10 <style type="text/css"> |
| 10 div | 11 div |
| 11 { | 12 { |
| 12 border: solid black; | 13 border: solid black; |
| 13 height: 2in; | 14 height: 2in; |
| 14 width: 2in; | 15 width: 2in; |
| 15 } | 16 } |
| 16 span | 17 span |
| 17 { | 18 { |
| 18 color: blue; | 19 color: blue; |
| 19 font: 1in/1em Ahem; | 20 font: 1in/1em Ahem; |
| 20 left: auto; | 21 left: auto; |
| 21 margin-right: auto; | 22 margin-right: auto; |
| 22 position: relative; | 23 position: relative; |
| 23 right: auto; | 24 right: auto; |
| 24 } | 25 } |
| 25 </style> | 26 </style> |
| 26 </head> | 27 </head> |
| 27 <body> | 28 <body> |
| 28 <p>Test passes if the blue box below is in the upper-left corner of the
black box.</p> | 29 <p>Test passes if the blue box below is in the upper-left corner of the
black box.</p> |
| 29 <div> | 30 <div> |
| 30 <span>X</span> | 31 <span>X</span> |
| 31 </div> | 32 </div> |
| 32 </body> | 33 </body> |
| 33 </html> | 34 </html> |
| OLD | NEW |