font-systemfont-rule-003.xht (1163B)
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: System Font, substitute for similar system font when font unknown</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#font-shorthand" /> 7 <link rel="help" href="http://www.w3.org/TR/css-fonts-3/#font-prop"/> 8 <meta name="assert" content="It the specified system font is not available, then substitute it for a similar one, if there is no similar one, then substitute with the default one." /> 9 <style type="text/css"> 10 #test 11 { 12 font: UnknownFont; 13 } 14 </style> 15 </head> 16 <body> 17 <p>PREREQUISITE: Operating system cannot have a font named "UnknownFont" installed. If it is installed remove it to verify this test.</p> 18 <p>Test passes if the lines of "Filler Text" below match.</p> 19 <div>Filler Text</div> 20 <div id="test">Filler Text</div> 21 </body> 22 </html>