font-051.xht (1796B)
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> 2 3 <html xmlns="http://www.w3.org/1999/xhtml"> 4 5 <head> 6 7 <title>CSS Test: font shorthand - minimal requirements</title> 8 9 <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> 10 <link rel="help" title="15.8 Shorthand font property" href="http://www.w3.org/TR/CSS21/fonts.html#font-shorthand" /> 11 <link rel="help" href="http://www.w3.org/TR/css-fonts-3/#font-prop" title="3.7 Shorthand font property: the font property" /> 12 <link rel="match" href="font-051-ref.xht" /> 13 14 <meta content="ahem invalid" name="flags" /> 15 <meta content="Font shorthand requires at minimum 2 font subproperties (unless resorting to a system font): font-size and font-family." name="assert" /> 16 17 <link rel="stylesheet" type="text/css" href="/fonts/ahem.css" /> 18 <style type="text/css"><![CDATA[ 19 div {font: 100px/1 Ahem;} 20 21 span {font: serif;} 22 ]]></style> 23 24 </head> 25 26 <body> 27 28 <p>Test passes if there is a filled black rectangle.</p> 29 30 <div> 31 <span>FAIL</span> 32 </div> 33 34 <!-- 35 'font' 36 Value: [ [ <'font-style'> || <'font-variant'> || <'font-weight'> 37 ]? <'font-size'> [ / <'line-height'> ]? <'font-family'> ] | caption 38 | icon | menu | message-box | small-caption | status-bar | inherit 39 http://www.w3.org/TR/CSS21/fonts.html#font-shorthand 40 41 A bar (|) separates two or more alternatives: exactly one of them 42 must occur. 43 A double bar (||) separates two or more options: one or more of 44 them must occur, in any order. 45 Brackets ([ ]) are for grouping. 46 A question mark (?) indicates that the preceding type, word, or 47 group is optional. 48 http://www.w3.org/TR/CSS21/about.html#value-defs 49 --> 50 51 </body> 52 </html>