| 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: Empty line box influence</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#propdef-l
ine-height"> | |
| 7 <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#leading"> | |
| 8 <meta name="flags" content="ahem"> | |
| 9 <script src="../../resources/ahem.js"></script> | |
| 10 <meta name="assert" content="Empty inline elements still influence calcu
lation just like elements with content."> | |
| 11 <style type="text/css"> | |
| 12 div, span | |
| 13 { | |
| 14 font: 1in/1em Ahem; | |
| 15 } | |
| 16 #div1 | |
| 17 { | |
| 18 margin-top: 1in; | |
| 19 } | |
| 20 #div2, #div3 | |
| 21 { | |
| 22 width: 5in; | |
| 23 } | |
| 24 #div2 | |
| 25 { | |
| 26 border: 0.25in solid green; | |
| 27 } | |
| 28 span | |
| 29 { | |
| 30 background: green; | |
| 31 border: 0.25in solid green; | |
| 32 margin: 1in; | |
| 33 padding: 1in; | |
| 34 } | |
| 35 #div3 | |
| 36 { | |
| 37 border: 0.25in solid red; | |
| 38 height: 1in; | |
| 39 position: relative; | |
| 40 top: -1.5in; | |
| 41 z-index: -1; | |
| 42 } | |
| 43 #div3 div | |
| 44 { | |
| 45 background: red; | |
| 46 border: 0.25in solid red; | |
| 47 height: 3in; | |
| 48 margin: 0 1in; | |
| 49 position: relative; | |
| 50 top: -1.25in; | |
| 51 width: 2in; | |
| 52 } | |
| 53 </style> | |
| 54 </head> | |
| 55 <body> | |
| 56 <p>Test passes if there is no red visible on the page.</p> | |
| 57 <div id="div1"> | |
| 58 <div id="div2"> | |
| 59 <span></span> | |
| 60 </div> | |
| 61 <div id="div3"> | |
| 62 <div></div> | |
| 63 </div> | |
| 64 </div> | |
| 65 </body> | |
| 66 </html> | |
| OLD | NEW |