font-weight-rule-003.xht (1193B)
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-weight inherits the computed weight</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-boldness" /> 7 <link rel="help" href="http://www.w3.org/TR/css-fonts-3/#font-weight-prop" /> 8 <link rel="match" href="font-weight-bold-ref.html" /> 9 <meta name="assert" content="Child elements inherit their parent's actual font weight." /> 10 <style type="text/css"> 11 #parent 12 { 13 font-weight: bold; 14 } 15 #reference 16 { 17 font-weight: bold; 18 } 19 div div 20 { 21 font-weight: inherit; 22 } 23 </style> 24 </head> 25 <body> 26 <p>Test passes if the lines of "Filler Text" below match.</p> 27 <div id="reference">Filler Text</div> 28 <div id="parent"> 29 <div>Filler Text</div> 30 </div> 31 </body> 32 </html>