font-040.xht (1668B)
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 three 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 <meta name="flags" content="ahem" /> 10 <meta name="assert" content="The 'font' shorthand property set to 'inherit' inherits the parent element's values." /> 11 <link rel="stylesheet" type="text/css" href="/fonts/ahem.css" /> 12 <style type="text/css"> 13 #wrapper 14 { 15 font: italic 1in Ahem; 16 position: relative; 17 } 18 #test 19 { 20 font: 0 Ahem; 21 font: inherit; 22 line-height: 1em; 23 } 24 #reference 25 { 26 background: black; 27 height: 1in; 28 left: 1.4in; 29 position: absolute; 30 top: 0; 31 width: 1in; 32 } 33 </style> 34 </head> 35 <body> 36 <p>Test passes if there are two boxes on the page and they are the same height. One box needs to be slanted to one side.</p> 37 <div id="wrapper"> 38 <div id="test">X</div> 39 <div id="reference"></div> 40 </div> 41 </body> 42 </html>