font-043.xht (1939B)
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 to 'inherit' inheriting six values</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 set to 'inherit' inherits the parent element's values." /> 12 <link rel="stylesheet" type="text/css" href="/fonts/ahem.css" /> 13 <style type="text/css"> 14 #wrapper 15 { 16 font: italic small-caps bold 1in/1em Ahem; 17 position: relative; 18 } 19 #test 20 { 21 font: 0 Ahem; 22 font: inherit; 23 position: absolute; 24 } 25 #reference 26 { 27 color: red; 28 font-family: Ahem; 29 font-size: 1in; 30 font-style: italic; 31 font-variant: small-caps; 32 font-weight: bold; 33 height: 1in; 34 left: 0; 35 line-height: 1em; 36 position: absolute; 37 top: 0; 38 width: 1in; 39 } 40 </style> 41 </head> 42 <body> 43 <p>Test passes if there is no red visible on the page except for antialiasing.</p> 44 <div id="wrapper"> 45 <div id="reference">x</div> 46 <div id="test">x</div> 47 </div> 48 </body> 49 </html>