c525-font-wt-000

font-weight

WeasyPrint

This browser

Source

 1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
 2 <html>
 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">
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  </head>
29  <body>
30   <p>This sentence is normal. </p>
31   <p class="normal">This sentence should also be normal.</p>
32   <p class="four">This sentence should also be normal.</p>
33   <p class="bolder"> This sentence should be bolder than normal. </p>
34   <p class="bold"> This sentence should be bold. </p>
35   <h4> Whatever this line looks like... </h4>
36   <h4 class="bolder"> ...this line should look bolder (or the same).</h4>
37   <p> <b>This sentence should be lighter than normal (or the same).</b> </p>
38   <p class="bold">
39    This sentence should be bold.
40    <span class="normal"> This sentence should be normal.</span>
41   </p>
42 
43   <hr>
44 
45   <p>For the following nine lines, each must be bolder or the same as the previous:</p>
46   <p class="one">Line 1 (Lightest)</p>
47   <p class="two">Line 2</p>
48   <p class="three">Line 3</p>
49   <p class="four">Line 4 (Normal)</p>
50   <p class="five">Line 5</p>
51   <p class="six">Line 6</p>
52   <p class="seven">Line 7</p>
53   <p class="eight">Line 8</p>
54   <p class="nine">Line 9 (Boldest)</p>
55  </body>
56 </html>