| 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 and border</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-no
n-replaced"> | |
| 7 <meta name="flags" content="ahem"> | |
| 8 <script src="../../resources/ahem.js"></script> | |
| 9 <meta name="assert" content="The border starts at the top and bottom of
the content area not the 'line-height'."> | |
| 10 <style type="text/css"> | |
| 11 #div1 | |
| 12 { | |
| 13 margin-top: 1in; | |
| 14 position: relative; | |
| 15 } | |
| 16 span | |
| 17 { | |
| 18 background: blue; | |
| 19 border-bottom: 0.5in solid blue; | |
| 20 border-top: 0.5in solid blue; | |
| 21 color: blue; | |
| 22 font: 1in Ahem; | |
| 23 line-height: 1.5in; | |
| 24 } | |
| 25 div div | |
| 26 { | |
| 27 background: orange; | |
| 28 height: 2in; | |
| 29 left: 1in; | |
| 30 position: absolute; | |
| 31 top: -0.25in; | |
| 32 width: 1in; | |
| 33 } | |
| 34 </style> | |
| 35 </head> | |
| 36 <body> | |
| 37 <p>Test passes if the blue and orange boxes below are the same height.</
p> | |
| 38 <div id="div1"> | |
| 39 <span>X</span> | |
| 40 <div></div> | |
| 41 </div> | |
| 42 </body> | |
| 43 </html> | |
| OLD | NEW |