font-weight-017.xht (2186B)
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: sanity tests for absolute keyword values of font-weight</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/weight/001.xml" type="application/xhtml+xml"/> 7 <link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/fonts/weight/001.html" type="text/html"/> 8 <link rel="help" href="http://www.w3.org/TR/CSS21/fonts.html#font-boldness" /> 9 <link rel="help" href="http://www.w3.org/TR/css-fonts-3/#font-weight-prop" /> 10 <style type="text/css"> 11 /* Chains should be followed all the way. If a chain causes reentrancy, fail. */ 12 .fw100 { font-weight: 100; } /* defaults to 200 */ 13 .fw200 { font-weight: 200; } /* defaults to 100, failing to 300 */ 14 .fw300 { font-weight: 300; } /* defaults to 200, failing to 400 */ 15 .fw400 { font-weight: 400; } /* normal */ 16 .fw500 { font-weight: 500; } /* defaults to 400 */ 17 .fw600 { font-weight: 600; } /* defaults to 700, failing to 500 */ 18 .fw700 { font-weight: 700; } /* bold - defaults to 800, failing to 600 */ 19 .fw800 { font-weight: 800; } /* defaults to 900, failing to 700 */ 20 .fw900 { font-weight: 900; } /* defaults to 800 */ 21 22 /* prettiness */ 23 p { margin: 1em 0 0.4em 0; } 24 .w { font-family: Verdana, sans-serif; font-variant: normal; font-style: normal; font-size: 1em; margin: 0 0 0.2em 2em; } 25 </style> 26 </head> 27 <body> 28 <p>The following text should get darker (or stay the same) at each stage.</p> 29 <p class="w fw100">100</p> 30 <p class="w fw200">200</p> 31 <p class="w fw300">300</p> 32 <p class="w fw400">400 normal</p> 33 <p class="w fw500">500</p> 34 <p class="w fw600">600</p> 35 <p class="w fw700">700 bold</p> 36 <p class="w fw800">800</p> 37 <p class="w fw900">900</p> 38 <p>If there are two or more different weights in the list above, 39 then the following two tests should be of different weights:</p> 40 <p class="w fw500">500 (defaults to 400 normal)</p> 41 <p class="w fw600">600 (defaults to 700 bold)</p> 42 </body> 43 </html>