font-003.xht (1259B)
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-variant, 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="font-003-ref.html"/> 10 <meta name="assert" content="The 'font' shorthand property accepts and sets font-variant, font-size and font-family." /> 11 <style type="text/css"> 12 div 13 { 14 font: 1in serif; 15 } 16 span 17 { 18 font: small-caps 1in serif; 19 line-height: 1em; 20 } 21 </style> 22 </head> 23 <body> 24 <p>Test passes if letters "E" below are larger than this text, are capitalized, and if the left "E" is smaller than the right "E".</p> 25 <div><span>e</span>E</div> 26 </body> 27 </html>