font-weight-015.xht (1283B)
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> 2 <html xmlns="http://www.w3.org/1999/xhtml"> 3 <head> 4 <title>CSS Test: CSS: font-weight inheritance</title> 5 <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> 6 <link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/fonts/ahem/003.xml" type="application/xhtml+xml"/> 7 <link rel="help" href="http://www.w3.org/TR/CSS21/fonts.html#font-boldness" /> 8 <link rel="help" href="http://www.w3.org/TR/css-fonts-3/#font-weight-prop" /> 9 <meta name="flags" content="ahem"/> 10 <link rel="stylesheet" type="text/css" href="/fonts/ahem.css" /> 11 <style type="text/css"> 12 .a { font-weight: 900; } 13 .c { font-family: Ahem; font-size: 64px; line-height: 64px; height: 64px; width: 257px; background: red; color: green; position: absolute; } 14 .container { position: relative; } 15 .overlapper { position: absolute; height: 48px; width: 240px; padding: 8px; background: white; } 16 </style> 17 </head> 18 <body> 19 20 <div class="container"> 21 <div class="a"> 22 <div class="b"> 23 <div class="c"> 24 FAIL 25 </div> 26 </div> 27 </div> 28 <div class="overlapper"> 29 There should be a green line to the right of this text. 30 </div> 31 </div> 32 33 </body> 34 </html>