font-011.xht (1983B)
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: Font shorthand set using the values font-style, font-variant, font-weight, font-size and font-family</title> 5 <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> 6 <link rel="help" href="http://www.w3.org/TR/CSS21/fonts.html#propdef-font" /> 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="../reference/no_red_bold_italic_small-caps_ahem.html"/> 10 <meta name="flags" content="ahem" /> 11 <meta name="assert" content="The 'font' shorthand property accepts and sets font-style, font-variant, font-weight, font-size and font-family." /> 12 <link rel="stylesheet" type="text/css" href="/fonts/ahem.css" /> 13 <style type="text/css"> 14 #wrapper 15 { 16 position: relative; 17 } 18 #test 19 { 20 font: italic small-caps bold 1in Ahem; 21 line-height: 1em; 22 position: absolute; 23 } 24 #reference 25 { 26 color: red; 27 font-family: Ahem; 28 font-size: 1in; 29 font-style: italic; 30 font-variant: small-caps; 31 font-weight: bold; 32 height: 1in; 33 left: 0; 34 line-height: 1em; 35 position: absolute; 36 top: 0; 37 width: 1in; 38 } 39 </style> 40 </head> 41 <body> 42 <p>Test passes if there is no red visible on the page except for antialiasing.</p> 43 <div id="wrapper"> 44 <div id="reference">x</div> 45 <div id="test">x</div> 46 </div> 47 </body> 48 </html>