Source code

Revision control

Copy as Markdown

Other Tools

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<head>
<title>CSS Test: font weight mapping with various families with lighter use (ref)</title>
<link rel="author" title="Mozilla" href="http://www.mozilla.com/" />
<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 { }
thead th { text-align: center; padding-bottom: 1em; }
td { width: 5em; text-align: center; }
td.f1 { font-family: CSSTest Weights; }
td.f2 { font-family: CSSTest Weights; }
td.f3 { font-family: CSSTest Weights; }
td.f4 { font-family: CSSTest Weights; }
td.f5 { font-family: CSSTest Weights; }
td.f6 { font-family: CSSTest Weights; }
td.f7 { font-family: CSSTest Weights; }
td.f8 { font-family: CSSTest Weights; }
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; }
.b { font-weight: bold; }
</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>1</span></td><td class="f2"><span>1</span></td><td class="f3"><span>1</span></td><td class="f4"><span>2</span></td><td class="f5"><span>2</span></td><td class="f6"><span>2</span></td><td class="f7"><span>3</span></td><td class="f8"><span>4</span></td></tr>
<tr class="w2"><th>200</th><td class="f1"><span>1</span></td><td class="f2"><span>1</span></td><td class="f3"><span>1</span></td><td class="f4"><span>2</span></td><td class="f5"><span>2</span></td><td class="f6"><span>2</span></td><td class="f7"><span>3</span></td><td class="f8"><span>4</span></td></tr>
<tr class="w3"><th>300</th><td class="f1"><span>1</span></td><td class="f2"><span>1</span></td><td class="f3"><span>1</span></td><td class="f4"><span>2</span></td><td class="f5"><span>2</span></td><td class="f6"><span>2</span></td><td class="f7"><span>3</span></td><td class="f8"><span>4</span></td></tr>
<tr class="w4"><th>400</th><td class="f1"><span>1</span></td><td class="f2"><span>1</span></td><td class="f3"><span>1</span></td><td class="f4"><span>2</span></td><td class="f5"><span>2</span></td><td class="f6"><span>2</span></td><td class="f7"><span>3</span></td><td class="f8"><span>4</span></td></tr>
<tr class="w5"><th>500</th><td class="f1"><span>1</span></td><td class="f2"><span>1</span></td><td class="f3"><span>1</span></td><td class="f4"><span>2</span></td><td class="f5"><span>2</span></td><td class="f6"><span>2</span></td><td class="f7"><span>3</span></td><td class="f8"><span>4</span></td></tr>
<tr class="w6"><th>600</th><td class="f1"><span>4</span></td><td class="f2"><span>4</span></td><td class="f3"><span>5</span></td><td class="f4"><span>4</span></td><td class="f5"><span>5</span></td><td class="f6"><span>5</span></td><td class="f7"><span>5</span></td><td class="f8"><span>4</span></td></tr>
<tr class="w7"><th>700</th><td class="f1"><span>4</span></td><td class="f2"><span>4</span></td><td class="f3"><span>5</span></td><td class="f4"><span>4</span></td><td class="f5"><span>5</span></td><td class="f6"><span>5</span></td><td class="f7"><span>5</span></td><td class="f8"><span>4</span></td></tr>
<tr class="w8"><th>800</th><td class="f1"><span>7</span></td><td class="f2"><span>7</span></td><td class="f3 b"><span>5</span></td><td class="f4 b"><span>4</span></td><td class="f5"><span>9</span></td><td class="f6"><span>8</span></td><td class="f7"><span>8</span></td><td class="f8"><span>7</span></td></tr>
<tr class="w9"><th>900</th><td class="f1"><span>7</span></td><td class="f2"><span>7</span></td><td class="f3 b"><span>5</span></td><td class="f4 b"><span>4</span></td><td class="f5"><span>9</span></td><td class="f6"><span>8</span></td><td class="f7"><span>8</span></td><td class="f8"><span>7</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>