| OLD | NEW |
| 1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/x
html1/DTD/xhtml1-strict.dtd"> | 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"> | 2 <html xmlns="http://www.w3.org/1999/xhtml"> |
| 3 <head> | 3 <head> |
| 4 <title>CSS Test: Leading and half leading line heights</title> | 4 <title>CSS Test: Leading and half leading line heights</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="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/
BrowserBugsSection/css21testsuite/" /> <!-- 2012-04-02 --> | 6 <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/
BrowserBugsSection/css21testsuite/" /> <!-- 2012-04-02 --> |
| 7 <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#leading"
/> | 7 <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#leading"
/> |
| 8 <link rel="match" href="leading-001-ref.xht" /> | 8 <link rel="match" href="leading-001-ref.xht" /> |
| 9 | 9 |
| 10 <meta name="flags" content="ahem" /> | 10 <meta name="flags" content="ahem" /> |
| 11 <meta name="assert" content="Line-height can be different from the conte
nt area so space is above and below." /> | 11 <meta name="assert" content="Line-height can be different from the conte
nt area so space is above and below." /> |
| 12 <style type="text/css"> | 12 <style type="text/css"> |
| 13 div | 13 div |
| 14 { | 14 { |
| 15 font: 100px/1em Ahem; | 15 font: 100px/1em Ahem; |
| 16 background: blue; | 16 background: blue; |
| 17 width: 200px; | 17 width: 200px; |
| 18 } | 18 } |
| 19 span | 19 span |
| 20 { | 20 { |
| 21 color: orange; | 21 color: orange; |
| 22 line-height: 200px; | 22 line-height: 200px; |
| 23 } | 23 } |
| 24 </style> | 24 </style> |
| 25 </head> | 25 </head> |
| 26 <body> | 26 <body> |
| 27 <p>Test passes if a filled orange square is vertically centered inside a
bigger filled blue square.</p> | 27 <p>Test passes if a filled orange square is vertically centered inside a
bigger filled blue square.</p> |
| 28 <div> | 28 <div> |
| 29 <span>X</span> | 29 <span>X</span> |
| 30 </div> | 30 </div> |
| 31 </body> | 31 </body> |
| 32 </html> | 32 </html> |
| OLD | NEW |