-
Notifications
You must be signed in to change notification settings - Fork 3.1k
/
font-weight-lighter-001.xht
71 lines (70 loc) · 5.85 KB
/
font-weight-lighter-001.xht
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>CSS Test: font weight mapping with various families with lighter use</title>
<link rel="author" title="Mozilla" href="http://www.mozilla.com/" />
<link rel="help" href="http://www.w3.org/TR/CSS21/fonts.html#propdef-font-weight" />
<link rel="help" href="http://www.w3.org/TR/CSS21/fonts.html#font-boldness" />
<link rel="match" href="font-weight-lighter-001-ref.xht"/>
<meta name="flags" content="should" />
<meta name="assert" content="Font weights should map to corresponding font faces in a family with all weights" />
<style type="text/css">
span#verify { font-family: CSSTest Verify; font-weight: normal; }
div { margin-bottom: 1em; }
body { margin: 50px; }
table {
border-collapse: collapse;
}
th {
font-weight: normal;
text-align: left;
padding-right: 1em;
}
span { font-weight: lighter; }
thead th { text-align: center; padding-bottom: 1em; }
td { width: 5em; text-align: center; }
td.f1 { font-family: CSSTest Weights Full; }
td.f2 { font-family: CSSTest Weights W1479; }
td.f3 { font-family: CSSTest Weights W15; }
td.f4 { font-family: CSSTest Weights W24; }
td.f5 { font-family: CSSTest Weights W2569; }
td.f6 { font-family: CSSTest Weights W258; }
td.f7 { font-family: CSSTest Weights W3589; }
td.f8 { font-family: CSSTest Weights W47; }
th.f1 { display: table-cell; }
th.f2 { display: table-cell; }
th.f3 { display: table-cell; }
th.f4 { display: table-cell; }
th.f5 { display: table-cell; }
th.f6 { display: table-cell; }
th.f7 { display: table-cell; }
th.f8 { display: table-cell; }
tr.w1 td { font-weight: 100; }
tr.w2 td { font-weight: 200; }
tr.w3 td { font-weight: 300; }
tr.w4 td { font-weight: 400; }
tr.w5 td { font-weight: 500; }
tr.w6 td { font-weight: 600; }
tr.w7 td { font-weight: 700; }
tr.w8 td { font-weight: 800; }
tr.w9 td { font-weight: 900; }
</style>
</head>
<body>
<div><a href="http://www.w3.org/Style/CSS/Test/Fonts/">Test fonts</a> must be installed for this test: <span id="verify">FAIL</span></div>
<table>
<thead><th class="f1"></th><th class="f1">Full</th><th class="f2">W1479</th><th class="f3">W15</th><th class="f4">W24</th><th class="f5">W2569</th><th class="f6">W258</th><th class="f7">W3589</th><th class="f8">W47</th></thead>
<tr class="w1"><th>100</th><td class="f1"><span>A</span></td><td class="f2"><span>A</span></td><td class="f3"><span>A</span></td><td class="f4"><span>A</span></td><td class="f5"><span>A</span></td><td class="f6"><span>A</span></td><td class="f7"><span>A</span></td><td class="f8"><span>A</span></td></tr>
<tr class="w2"><th>200</th><td class="f1"><span>A</span></td><td class="f2"><span>A</span></td><td class="f3"><span>A</span></td><td class="f4"><span>A</span></td><td class="f5"><span>A</span></td><td class="f6"><span>A</span></td><td class="f7"><span>A</span></td><td class="f8"><span>A</span></td></tr>
<tr class="w3"><th>300</th><td class="f1"><span>A</span></td><td class="f2"><span>A</span></td><td class="f3"><span>A</span></td><td class="f4"><span>A</span></td><td class="f5"><span>A</span></td><td class="f6"><span>A</span></td><td class="f7"><span>A</span></td><td class="f8"><span>A</span></td></tr>
<tr class="w4"><th>400</th><td class="f1"><span>A</span></td><td class="f2"><span>A</span></td><td class="f3"><span>A</span></td><td class="f4"><span>A</span></td><td class="f5"><span>A</span></td><td class="f6"><span>A</span></td><td class="f7"><span>A</span></td><td class="f8"><span>A</span></td></tr>
<tr class="w5"><th>500</th><td class="f1"><span>A</span></td><td class="f2"><span>A</span></td><td class="f3"><span>A</span></td><td class="f4"><span>A</span></td><td class="f5"><span>A</span></td><td class="f6"><span>A</span></td><td class="f7"><span>A</span></td><td class="f8"><span>A</span></td></tr>
<tr class="w6"><th>600</th><td class="f1"><span>A</span></td><td class="f2"><span>A</span></td><td class="f3"><span>A</span></td><td class="f4"><span>A</span></td><td class="f5"><span>A</span></td><td class="f6"><span>A</span></td><td class="f7"><span>A</span></td><td class="f8"><span>A</span></td></tr>
<tr class="w7"><th>700</th><td class="f1"><span>A</span></td><td class="f2"><span>A</span></td><td class="f3"><span>A</span></td><td class="f4"><span>A</span></td><td class="f5"><span>A</span></td><td class="f6"><span>A</span></td><td class="f7"><span>A</span></td><td class="f8"><span>A</span></td></tr>
<tr class="w8"><th>800</th><td class="f1"><span>A</span></td><td class="f2"><span>A</span></td><td class="f3"><span>A</span></td><td class="f4"><span>A</span></td><td class="f5"><span>A</span></td><td class="f6"><span>A</span></td><td class="f7"><span>A</span></td><td class="f8"><span>A</span></td></tr>
<tr class="w9"><th>900</th><td class="f1"><span>A</span></td><td class="f2"><span>A</span></td><td class="f3"><span>A</span></td><td class="f4"><span>A</span></td><td class="f5"><span>A</span></td><td class="f6"><span>A</span></td><td class="f7"><span>A</span></td><td class="f8"><span>A</span></td></tr>
</table>
<p>The table above should match the image below. The numbers and bolding (if present) must match to pass.</p>
<img src="support/font-weight-lighter-001-ref.png" />
</body>
</html>