font-matching-rule-013.xht (1356B)
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 Matching Algorithm, font-variant font missing small-caps property</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#algorithm" /> 7 <meta name="assert" content="A font that is only available as small-caps can be assigned either a normal or a small-caps to its font-variant property. Both values have the same effect." /> 8 <style type="text/css"> 9 span 10 { 11 font-family: SmallCaps; 12 } 13 #span1 14 { 15 font-variant: normal; 16 } 17 #span2 18 { 19 font-variant: small-caps; 20 } 21 </style> 22 </head> 23 <body> 24 <p>PREREQUISITE: Operating system needs to have the '<a href="support/AHEM_smallcaps.ttf">Small Caps</a>' font installed.</p> 25 <p>Post Test: Remove test font after running the test.</p> 26 <p>Test passes if there is a box below and the top edge is not jagged.</p> 27 <div> 28 <span id="span1">X</span><span id="span2">X</span> 29 </div> 30 </body> 31 </html>