| OLD | NEW |
| (Empty) |
| 1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/st
rict.dtd"> | |
| 2 <html> | |
| 3 <head> | |
| 4 <title>CSS Test: Inline non-replaced elements with 'auto' value for 'lef
t', 'right', and 'margin-left'</title> | |
| 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"> | |
| 7 <meta name="flags" content="ahem"> | |
| 8 <script src="../../resources/ahem.js"></script> | |
| 9 <meta name="assert" content="Computed value of 'auto' for 'left', 'right
', and 'margin-left' becomes a used value of '0'."> | |
| 10 <style type="text/css"> | |
| 11 div | |
| 12 { | |
| 13 border: solid black; | |
| 14 height: 2in; | |
| 15 width: 2in; | |
| 16 } | |
| 17 span | |
| 18 { | |
| 19 color: blue; | |
| 20 font: 1in/1em Ahem; | |
| 21 left: auto; | |
| 22 margin-left: auto; | |
| 23 position: relative; | |
| 24 right: auto; | |
| 25 } | |
| 26 </style> | |
| 27 </head> | |
| 28 <body> | |
| 29 <p>Test passes if the blue box below is in the upper-left corner of the
black box.</p> | |
| 30 <div> | |
| 31 <span>X</span> | |
| 32 </div> | |
| 33 </body> | |
| 34 </html> | |
| OLD | NEW |