c525-font-wt-000.xht (2292B)
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: font-weight</title> 5 <link rel="help" href="http://www.w3.org/TR/REC-CSS1#font-weight"/> 6 <link rel="author" title="CSS1 Test Suite Contributors" href="http://www.w3.org/Style/CSS/Test/CSS1/current/tsack.html"/> 7 <link rel="author" title="Elika J. Etemad" href="http://fantasai.inkedblade.net/contact"/> 8 <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> 9 <style type="text/css"><![CDATA[ 10 p { margin: 0.5em 0; } 11 p, h4 { color: navy; } 12 .bold {font-weight: bold;} 13 .bolder {font-weight: bolder;} 14 b {font-weight: lighter;} 15 .normal { font-weight: normal; } 16 17 .one { font-weight: 100; } 18 .two { font-weight: 200; } 19 .three { font-weight: 300; } 20 .four { font-weight: 400; } 21 .five { font-weight: 500; } 22 .six { font-weight: 600; } 23 .seven { font-weight: 700; } 24 .eight { font-weight: 800; } 25 .nine { font-weight: 900; } 26 ]]></style> 27 <link rel="help" href="http://www.w3.org/TR/CSS21/fonts.html#font-boldness" title="15.6 Font boldness: the 'font-weight' property"/> 28 <link rel="help" href="http://www.w3.org/TR/css-fonts-3/#font-weight-prop" /> 29 </head> 30 <body> 31 <p>This sentence is normal. </p> 32 <p class="normal">This sentence should also be normal.</p> 33 <p class="four">This sentence should also be normal.</p> 34 <p class="bolder"> This sentence should be bolder than normal. </p> 35 <p class="bold"> This sentence should be bold. </p> 36 <h4> Whatever this line looks like... </h4> 37 <h4 class="bolder"> ...this line should look bolder (or the same).</h4> 38 <p> <b>This sentence should be lighter than normal (or the same).</b> </p> 39 <p class="bold"> 40 This sentence should be bold. 41 <span class="normal"> This sentence should be normal.</span> 42 </p> 43 44 <hr/> 45 46 <p>For the following nine lines, each must be bolder or the same as the previous:</p> 47 <p class="one">Line 1 (Lightest)</p> 48 <p class="two">Line 2</p> 49 <p class="three">Line 3</p> 50 <p class="four">Line 4 (Normal)</p> 51 <p class="five">Line 5</p> 52 <p class="six">Line 6</p> 53 <p class="seven">Line 7</p> 54 <p class="eight">Line 8</p> 55 <p class="nine">Line 9 (Boldest)</p> 56 </body> 57 </html>