font-146.xht (1062B)
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> 2 <html xmlns="http://www.w3.org/1999/xhtml" lang="en"> 3 <head> 4 <title>CSS Test: font shorthand and negative line-heights</title> 5 <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> 6 <link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/fonts/008.html" type="text/html"/> 7 <link rel="help" href="http://www.w3.org/TR/CSS21/fonts.html#font-shorthand" /> 8 <link rel="help" href="http://www.w3.org/TR/css-fonts-3/#font-prop"/> 9 <link rel="match" href="font-146-ref.xht" /> 10 11 <meta name="flags" content="ahem invalid" /> 12 <style type="text/css"> 13 div { position: absolute; top: 0; left: 0; } 14 div.test { font: 4em/-2em serif; background: red; color: yellow; } 15 div.control { background: green; color: white; } 16 </style> 17 </head> 18 <body> 19 <div class="test">Test passes if this sentence has a green background.</div> 20 <div class="control">Test passes if this sentence has a green background.</div> 21 </body> 22 </html>