font-144.xht (2273B)
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"> 3 <head> 4 <title>CSS Test: Parsing the 'font' shorthand</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/001.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 10 <meta name="flags" content="ahem"/> 11 <link rel="stylesheet" type="text/css" href="/fonts/ahem.css" /> 12 <style type="text/css"> 13 p { color: green; margin: 1em; } 14 .test { width: 6em; } 15 span { background: red; color: white; } 16 .a { font: normal normal normal 1em/normal Ahem, serif; } 17 .b { font: normal normal normal medium/normal Ahem, serif; } 18 .c { font: normal normal normal medium/1 Ahem, serif; } 19 .d { font: normal normal normal 1em/1 Ahem, serif; } 20 .e { font: normal normal 1em/1 Ahem, serif; } 21 .f { font: normal 1em/1 Ahem, serif; } 22 .g { font: 1em/1 Ahem, serif; } 23 .h { font: normal normal normal 1em Ahem, serif; } 24 .i { font: normal normal normal medium Ahem, serif; } 25 .j { font: normal normal normal medium Ahem, serif; } 26 .k { font: normal normal normal 1em Ahem, serif; } 27 .l { font: normal normal 1em Ahem, serif; } 28 .m { font: normal 1em Ahem, serif; } 29 .n { font: 1em Ahem, serif; } 30 </style> 31 </head> 32 <body> 33 34 <p>Test passes if this sentence is green and if there is <strong>no red below</strong>.</p> 35 36 <p class="test a"> <span>FAIL-a</span> </p> 37 <p class="test b"> <span>FAIL-b</span> </p> 38 <p class="test c"> <span>FAIL-c</span> </p> 39 <p class="test d"> <span>FAIL-d</span> </p> 40 <p class="test e"> <span>FAIL-e</span> </p> 41 <p class="test f"> <span>FAIL-f</span> </p> 42 <p class="test g"> <span>FAIL-g</span> </p> 43 <p class="test h"> <span>FAIL-h</span> </p> 44 <p class="test i"> <span>FAIL-i</span> </p> 45 <p class="test j"> <span>FAIL-j</span> </p> 46 <p class="test k"> <span>FAIL-k</span> </p> 47 <p class="test l"> <span>FAIL-l</span> </p> 48 <p class="test m"> <span>FAIL-m</span> </p> 49 <p class="test n"> <span>FAIL-n</span> </p> 50 51 </body> 52 </html>