fonts-010.xht (1170B)
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" lang="en"> 3 <head> 4 <title>CSS Test: font inheritance into <pre> elements</title> 5 <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> 6 <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-04-08 --> 7 <link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/fonts/004.html" type="text/html"/> 8 <link rel="help" href="http://www.w3.org/TR/CSS21/fonts.html#algorithm" /> 9 <link rel="help" href="http://www.w3.org/TR/css-fonts-3/#font-matching-algorithm" /> 10 <link rel="match" href="fonts-010-ref.xht" /> 11 12 <meta name="flags" content="ahem"/> 13 <link rel="stylesheet" type="text/css" href="/fonts/ahem.css" /> 14 <style type="text/css"> 15 div { font: 1.25em/1 Ahem; width: 2em; background: red; height: 2em; } 16 pre { font: inherit; color: green; } 17 </style> 18 </head> 19 <body> 20 <p>Test passes if there is a small filled green square and <strong>no red</strong>.</p> 21 <div><pre>xx 22 xx</pre></div> 23 </body> 24 </html>