Bug 3512. Reftests to test font-stretch with different sets of font families. r=jkew

This commit is contained in:
John Daggett 2011-09-07 13:00:15 +09:00
Родитель c97fd1321c
Коммит 168034ee1f
9 изменённых файлов: 2208 добавлений и 0 удалений

Просмотреть файл

@ -62,6 +62,11 @@ HTTP(..) == weightmapping-478.html weightmapping-478-ref.html
HTTP(..) == weightmapping-7.html weightmapping-7-ref.html
HTTP(..) == weightmapping-12579.html weightmapping-12579-ref.html
HTTP(..) == stretchmapping-all.html stretchmapping-all-ref.html
HTTP(..) == stretchmapping-reverse.html stretchmapping-reverse-ref.html
HTTP(..) == stretchmapping-35.html stretchmapping-35-ref.html
HTTP(..) == stretchmapping-137.html stretchmapping-137-ref.html
# test for font-stretch using @font-face
HTTP(..) == font-stretch-1.html font-stretch-1-ref.html

Просмотреть файл

@ -0,0 +1,348 @@
<!DOCTYPE HTML>
<html>
<head>
<title>font-stretch mapping tests</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<style type="text/css">
body {
margin: 50px;
font-family: Verdana, sans-serif;
}
h3, h4 { font-weight: normal; }
table {
border-collapse: collapse;
font-size: 28px;
}
td {
padding: 0; margin: 0;
font-family: test;
}
th {
font-weight: inherit;
}
p { width: 300px; }
.red { color: red; }
thead { font-weight: 400; font-size: 75%; }
/* make all the spans blocks to avoid influence of what's outside them
on line-height calculations */
span { display: block; }
@font-face {
font-family: test;
src: url(../fonts/mplus/mplus-1p-thin.ttf);
font-weight: 100;
font-stretch: ultra-condensed;
}
@font-face {
font-family: test;
src: url(../fonts/mplus/mplus-1p-regular.ttf);
font-weight: 400;
font-stretch: ultra-condensed;
}
@font-face {
font-family: test;
src: url(../fonts/mplus/mplus-1p-light.ttf);
font-weight: 200;
font-stretch: condensed;
}
@font-face {
font-family: test;
src: url(../fonts/mplus/mplus-1p-heavy.ttf);
font-weight: 800;
font-stretch: condensed;
}
@font-face {
font-family: test;
src: url(../fonts/mplus/mplus-1p-medium.ttf);
font-weight: 500;
font-stretch: expanded;
}
@font-face {
font-family: test;
src: url(../fonts/mplus/mplus-1p-black.ttf);
font-weight: 900;
font-stretch: expanded;
}
@font-face {
font-family: test100;
src: url(../fonts/mplus/mplus-1p-thin.ttf);
font-weight: 100;
}
@font-face {
font-family: test200;
src: url(../fonts/mplus/mplus-1p-light.ttf);
font-weight: 200;
}
@font-face {
font-family: test400;
src: url(../fonts/mplus/mplus-1p-regular.ttf);
font-weight: 400;
}
@font-face {
font-family: test500;
src: url(../fonts/mplus/mplus-1p-medium.ttf);
font-weight: 500;
}
@font-face {
font-family: test800;
src: url(../fonts/mplus/mplus-1p-heavy.ttf);
font-weight: 800;
}
@font-face {
font-family: test900;
src: url(../fonts/mplus/mplus-1p-black.ttf);
font-weight: 900;
}
.w1 { font-weight: 100; }
.w2 { font-weight: 200; }
.w3 { font-weight: 300; }
.w4 { font-weight: 400; }
.w5 { font-weight: 500; }
.w6 { font-weight: 600; }
.w7 { font-weight: 700; }
.w8 { font-weight: 800; }
.w9 { font-weight: 900; }
.w1 .fs1 { font-family: test100; }
.w2 .fs1 { font-family: test100; }
.w3 .fs1 { font-family: test100; }
.w4 .fs1 { font-family: test400; }
.w5 .fs1 { font-family: test400; }
.w6 .fs1 { font-family: test400; }
.w7 .fs1 { font-family: test400; }
.w8 .fs1 { font-family: test400; }
.w9 .fs1 { font-family: test400; }
.w1 .fs2 { font-family: test100; }
.w2 .fs2 { font-family: test100; }
.w3 .fs2 { font-family: test100; }
.w4 .fs2 { font-family: test400; }
.w5 .fs2 { font-family: test400; }
.w6 .fs2 { font-family: test400; }
.w7 .fs2 { font-family: test400; }
.w8 .fs2 { font-family: test400; }
.w9 .fs2 { font-family: test400; }
.w1 .fs3 { font-family: test200; }
.w2 .fs3 { font-family: test200; }
.w3 .fs3 { font-family: test200; }
.w4 .fs3 { font-family: test200; }
.w5 .fs3 { font-family: test200; }
.w6 .fs3 { font-family: test800; }
.w7 .fs3 { font-family: test800; }
.w8 .fs3 { font-family: test800; }
.w9 .fs3 { font-family: test800; }
.w1 .fs4 { font-family: test200; }
.w2 .fs4 { font-family: test200; }
.w3 .fs4 { font-family: test200; }
.w4 .fs4 { font-family: test200; }
.w5 .fs4 { font-family: test200; }
.w6 .fs4 { font-family: test800; }
.w7 .fs4 { font-family: test800; }
.w8 .fs4 { font-family: test800; }
.w9 .fs4 { font-family: test800; }
.w1 .fs5 { font-family: test200; }
.w2 .fs5 { font-family: test200; }
.w3 .fs5 { font-family: test200; }
.w4 .fs5 { font-family: test200; }
.w5 .fs5 { font-family: test200; }
.w6 .fs5 { font-family: test800; }
.w7 .fs5 { font-family: test800; }
.w8 .fs5 { font-family: test800; }
.w9 .fs5 { font-family: test800; }
.w1 .fs6 { font-family: test500; }
.w2 .fs6 { font-family: test500; }
.w3 .fs6 { font-family: test500; }
.w4 .fs6 { font-family: test500; }
.w5 .fs6 { font-family: test500; }
.w6 .fs6 { font-family: test900; }
.w7 .fs6 { font-family: test900; }
.w8 .fs6 { font-family: test900; }
.w9 .fs6 { font-family: test900; }
.w1 .fs7 { font-family: test500; }
.w2 .fs7 { font-family: test500; }
.w3 .fs7 { font-family: test500; }
.w4 .fs7 { font-family: test500; }
.w5 .fs7 { font-family: test500; }
.w6 .fs7 { font-family: test900; }
.w7 .fs7 { font-family: test900; }
.w8 .fs7 { font-family: test900; }
.w9 .fs7 { font-family: test900; }
.w1 .fs8 { font-family: test500; }
.w2 .fs8 { font-family: test500; }
.w3 .fs8 { font-family: test500; }
.w4 .fs8 { font-family: test500; }
.w5 .fs8 { font-family: test500; }
.w6 .fs8 { font-family: test900; }
.w7 .fs8 { font-family: test900; }
.w8 .fs8 { font-family: test900; }
.w9 .fs8 { font-family: test900; }
.w1 .fs9 { font-family: test500; }
.w2 .fs9 { font-family: test500; }
.w3 .fs9 { font-family: test500; }
.w4 .fs9 { font-family: test500; }
.w5 .fs9 { font-family: test500; }
.w6 .fs9 { font-family: test900; }
.w7 .fs9 { font-family: test900; }
.w8 .fs9 { font-family: test900; }
.w9 .fs9 { font-family: test900; }
</style>
</head>
<body>
<p>Font family with ultra-condensed 100, 400, condensed 200, 800 and expanded 500, 900</p>
<table>
<thead>
<th></th>
<th class="red">1</th>
<th>2</th>
<th class="red">3</th>
<th>4</th>
<th>5</th>
<th>6</th>
<th class="red">7</th>
<th>8</th>
<th>9</th>
</thead>
<tr class="w1">
<th>100</th>
<td class="fs1"><span></span></td>
<td class="fs2"><span></span></td>
<td class="fs3"><span></span></td>
<td class="fs4"><span></span></td>
<td class="fs5"><span></span></td>
<td class="fs6"><span></span></td>
<td class="fs7"><span></span></td>
<td class="fs8"><span></span></td>
<td class="fs9"><span></span></td>
</tr>
<tr class="w2">
<th>200</th>
<td class="fs1"><span></span></td>
<td class="fs2"><span></span></td>
<td class="fs3"><span></span></td>
<td class="fs4"><span></span></td>
<td class="fs5"><span></span></td>
<td class="fs6"><span></span></td>
<td class="fs7"><span></span></td>
<td class="fs8"><span></span></td>
<td class="fs9"><span></span></td>
</tr>
<tr class="w3">
<th>300</th>
<td class="fs1"><span></span></td>
<td class="fs2"><span></span></td>
<td class="fs3"><span></span></td>
<td class="fs4"><span></span></td>
<td class="fs5"><span></span></td>
<td class="fs6"><span></span></td>
<td class="fs7"><span></span></td>
<td class="fs8"><span></span></td>
<td class="fs9"><span></span></td>
</tr>
<tr class="w4">
<th>400</th>
<td class="fs1"><span></span></td>
<td class="fs2"><span></span></td>
<td class="fs3"><span></span></td>
<td class="fs4"><span></span></td>
<td class="fs5"><span></span></td>
<td class="fs6"><span></span></td>
<td class="fs7"><span></span></td>
<td class="fs8"><span></span></td>
<td class="fs9"><span></span></td>
</tr>
<tr class="w5">
<th>500</th>
<td class="fs1"><span></span></td>
<td class="fs2"><span></span></td>
<td class="fs3"><span></span></td>
<td class="fs4"><span></span></td>
<td class="fs5"><span></span></td>
<td class="fs6"><span></span></td>
<td class="fs7"><span></span></td>
<td class="fs8"><span></span></td>
<td class="fs9"><span></span></td>
</tr>
<tr class="w6">
<th>600</th>
<td class="fs1"><span></span></td>
<td class="fs2"><span></span></td>
<td class="fs3"><span></span></td>
<td class="fs4"><span></span></td>
<td class="fs5"><span></span></td>
<td class="fs6"><span></span></td>
<td class="fs7"><span></span></td>
<td class="fs8"><span></span></td>
<td class="fs9"><span></span></td>
</tr>
<tr class="w7">
<th>700</th>
<td class="fs1"><span></span></td>
<td class="fs2"><span></span></td>
<td class="fs3"><span></span></td>
<td class="fs4"><span></span></td>
<td class="fs5"><span></span></td>
<td class="fs6"><span></span></td>
<td class="fs7"><span></span></td>
<td class="fs8"><span></span></td>
<td class="fs9"><span></span></td>
</tr>
<tr class="w8">
<th>800</th>
<td class="fs1"><span></span></td>
<td class="fs2"><span></span></td>
<td class="fs3"><span></span></td>
<td class="fs4"><span></span></td>
<td class="fs5"><span></span></td>
<td class="fs6"><span></span></td>
<td class="fs7"><span></span></td>
<td class="fs8"><span></span></td>
<td class="fs9"><span></span></td>
</tr>
<tr class="w9">
<th>900</th>
<td class="fs1"><span></span></td>
<td class="fs2"><span></span></td>
<td class="fs3"><span></span></td>
<td class="fs4"><span></span></td>
<td class="fs5"><span></span></td>
<td class="fs6"><span></span></td>
<td class="fs7"><span></span></td>
<td class="fs8"><span></span></td>
<td class="fs9"><span></span></td>
</tr>
</table>
</body>
</html>

Просмотреть файл

@ -0,0 +1,268 @@
<!DOCTYPE HTML>
<html>
<head>
<title>font-stretch mapping tests</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<style type="text/css">
body {
margin: 50px;
font-family: Verdana, sans-serif;
}
h3, h4 { font-weight: normal; }
table {
border-collapse: collapse;
font-size: 28px;
}
td {
padding: 0; margin: 0;
font-family: test;
}
th {
font-weight: inherit;
}
p { width: 300px; }
.red { color: red; }
thead { font-weight: 400; font-size: 75%; }
/* make all the spans blocks to avoid influence of what's outside them
on line-height calculations */
span { display: block; }
@font-face {
font-family: test;
src: url(../fonts/mplus/mplus-1p-thin.ttf);
font-weight: 100;
font-stretch: ultra-condensed;
}
@font-face {
font-family: test;
src: url(../fonts/mplus/mplus-1p-regular.ttf);
font-weight: 400;
font-stretch: ultra-condensed;
}
@font-face {
font-family: test;
src: url(../fonts/mplus/mplus-1p-light.ttf);
font-weight: 200;
font-stretch: condensed;
}
@font-face {
font-family: test;
src: url(../fonts/mplus/mplus-1p-heavy.ttf);
font-weight: 800;
font-stretch: condensed;
}
@font-face {
font-family: test;
src: url(../fonts/mplus/mplus-1p-medium.ttf);
font-weight: 500;
font-stretch: expanded;
}
@font-face {
font-family: test;
src: url(../fonts/mplus/mplus-1p-black.ttf);
font-weight: 900;
font-stretch: expanded;
}
@font-face {
font-family: test100;
src: url(../fonts/mplus/mplus-1p-thin.ttf);
font-weight: 100;
}
@font-face {
font-family: test200;
src: url(../fonts/mplus/mplus-1p-light.ttf);
font-weight: 200;
}
@font-face {
font-family: test400;
src: url(../fonts/mplus/mplus-1p-regular.ttf);
font-weight: 400;
}
@font-face {
font-family: test500;
src: url(../fonts/mplus/mplus-1p-medium.ttf);
font-weight: 500;
}
@font-face {
font-family: test800;
src: url(../fonts/mplus/mplus-1p-heavy.ttf);
font-weight: 800;
}
@font-face {
font-family: test900;
src: url(../fonts/mplus/mplus-1p-black.ttf);
font-weight: 900;
}
.w1 { font-weight: 100; }
.w2 { font-weight: 200; }
.w3 { font-weight: 300; }
.w4 { font-weight: 400; }
.w5 { font-weight: 500; }
.w6 { font-weight: 600; }
.w7 { font-weight: 700; }
.w8 { font-weight: 800; }
.w9 { font-weight: 900; }
.fs1 { font-stretch: ultra-condensed; }
.fs2 { font-stretch: extra-condensed; }
.fs3 { font-stretch: condensed; }
.fs4 { font-stretch: semi-condensed; }
.fs5 { font-stretch: normal; }
.fs6 { font-stretch: semi-expanded; }
.fs7 { font-stretch: expanded; }
.fs8 { font-stretch: extra-expanded; }
.fs9 { font-stretch: ultra-expanded; }
</style>
</head>
<body>
<p>Font family with ultra-condensed 100, 400, condensed 200, 800 and expanded 500, 900</p>
<table>
<thead>
<th></th>
<th class="red">1</th>
<th>2</th>
<th class="red">3</th>
<th>4</th>
<th>5</th>
<th>6</th>
<th class="red">7</th>
<th>8</th>
<th>9</th>
</thead>
<tr class="w1">
<th>100</th>
<td class="fs1"><span></span></td>
<td class="fs2"><span></span></td>
<td class="fs3"><span></span></td>
<td class="fs4"><span></span></td>
<td class="fs5"><span></span></td>
<td class="fs6"><span></span></td>
<td class="fs7"><span></span></td>
<td class="fs8"><span></span></td>
<td class="fs9"><span></span></td>
</tr>
<tr class="w2">
<th>200</th>
<td class="fs1"><span></span></td>
<td class="fs2"><span></span></td>
<td class="fs3"><span></span></td>
<td class="fs4"><span></span></td>
<td class="fs5"><span></span></td>
<td class="fs6"><span></span></td>
<td class="fs7"><span></span></td>
<td class="fs8"><span></span></td>
<td class="fs9"><span></span></td>
</tr>
<tr class="w3">
<th>300</th>
<td class="fs1"><span></span></td>
<td class="fs2"><span></span></td>
<td class="fs3"><span></span></td>
<td class="fs4"><span></span></td>
<td class="fs5"><span></span></td>
<td class="fs6"><span></span></td>
<td class="fs7"><span></span></td>
<td class="fs8"><span></span></td>
<td class="fs9"><span></span></td>
</tr>
<tr class="w4">
<th>400</th>
<td class="fs1"><span></span></td>
<td class="fs2"><span></span></td>
<td class="fs3"><span></span></td>
<td class="fs4"><span></span></td>
<td class="fs5"><span></span></td>
<td class="fs6"><span></span></td>
<td class="fs7"><span></span></td>
<td class="fs8"><span></span></td>
<td class="fs9"><span></span></td>
</tr>
<tr class="w5">
<th>500</th>
<td class="fs1"><span></span></td>
<td class="fs2"><span></span></td>
<td class="fs3"><span></span></td>
<td class="fs4"><span></span></td>
<td class="fs5"><span></span></td>
<td class="fs6"><span></span></td>
<td class="fs7"><span></span></td>
<td class="fs8"><span></span></td>
<td class="fs9"><span></span></td>
</tr>
<tr class="w6">
<th>600</th>
<td class="fs1"><span></span></td>
<td class="fs2"><span></span></td>
<td class="fs3"><span></span></td>
<td class="fs4"><span></span></td>
<td class="fs5"><span></span></td>
<td class="fs6"><span></span></td>
<td class="fs7"><span></span></td>
<td class="fs8"><span></span></td>
<td class="fs9"><span></span></td>
</tr>
<tr class="w7">
<th>700</th>
<td class="fs1"><span></span></td>
<td class="fs2"><span></span></td>
<td class="fs3"><span></span></td>
<td class="fs4"><span></span></td>
<td class="fs5"><span></span></td>
<td class="fs6"><span></span></td>
<td class="fs7"><span></span></td>
<td class="fs8"><span></span></td>
<td class="fs9"><span></span></td>
</tr>
<tr class="w8">
<th>800</th>
<td class="fs1"><span></span></td>
<td class="fs2"><span></span></td>
<td class="fs3"><span></span></td>
<td class="fs4"><span></span></td>
<td class="fs5"><span></span></td>
<td class="fs6"><span></span></td>
<td class="fs7"><span></span></td>
<td class="fs8"><span></span></td>
<td class="fs9"><span></span></td>
</tr>
<tr class="w9">
<th>900</th>
<td class="fs1"><span></span></td>
<td class="fs2"><span></span></td>
<td class="fs3"><span></span></td>
<td class="fs4"><span></span></td>
<td class="fs5"><span></span></td>
<td class="fs6"><span></span></td>
<td class="fs7"><span></span></td>
<td class="fs8"><span></span></td>
<td class="fs9"><span></span></td>
</tr>
</table>
</body>
</html>

Просмотреть файл

@ -0,0 +1,320 @@
<!DOCTYPE HTML>
<html>
<head>
<title>font-stretch mapping tests</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<style type="text/css">
body {
margin: 50px;
font-family: Verdana, sans-serif;
}
h3, h4 { font-weight: normal; }
table {
border-collapse: collapse;
font-size: 28px;
}
td {
padding: 0; margin: 0;
font-family: test;
}
th {
font-weight: inherit;
}
p { width: 300px; }
.red { color: red; }
thead { font-weight: 400; font-size: 75%; }
/* make all the spans blocks to avoid influence of what's outside them
on line-height calculations */
span { display: block; }
@font-face {
font-family: test;
src: url(../fonts/mplus/mplus-1p-light.ttf);
font-weight: 200;
}
@font-face {
font-family: test;
src: url(../fonts/mplus/mplus-1p-medium.ttf);
font-weight: 500;
}
@font-face {
font-family: test;
src: url(../fonts/mplus/mplus-1p-thin.ttf);
font-weight: 100;
font-stretch: condensed;
}
@font-face {
font-family: test;
src: url(../fonts/mplus/mplus-1p-black.ttf);
font-weight: 900;
font-stretch: condensed;
}
@font-face {
font-family: test100;
src: url(../fonts/mplus/mplus-1p-thin.ttf);
font-weight: 100;
}
@font-face {
font-family: test200;
src: url(../fonts/mplus/mplus-1p-light.ttf);
font-weight: 200;
}
@font-face {
font-family: test500;
src: url(../fonts/mplus/mplus-1p-medium.ttf);
font-weight: 500;
}
@font-face {
font-family: test900;
src: url(../fonts/mplus/mplus-1p-black.ttf);
font-weight: 900;
}
.w1 { font-weight: 100; }
.w2 { font-weight: 200; }
.w3 { font-weight: 300; }
.w4 { font-weight: 400; }
.w5 { font-weight: 500; }
.w6 { font-weight: 600; }
.w7 { font-weight: 700; }
.w8 { font-weight: 800; }
.w9 { font-weight: 900; }
.w1 .fs1 { font-family: test100; }
.w2 .fs1 { font-family: test100; }
.w3 .fs1 { font-family: test100; }
.w4 .fs1 { font-family: test100; }
.w5 .fs1 { font-family: test100; }
.w6 .fs1 { font-family: test900; }
.w7 .fs1 { font-family: test900; }
.w8 .fs1 { font-family: test900; }
.w9 .fs1 { font-family: test900; }
.w1 .fs2 { font-family: test100; }
.w2 .fs2 { font-family: test100; }
.w3 .fs2 { font-family: test100; }
.w4 .fs2 { font-family: test100; }
.w5 .fs2 { font-family: test100; }
.w6 .fs2 { font-family: test900; }
.w7 .fs2 { font-family: test900; }
.w8 .fs2 { font-family: test900; }
.w9 .fs2 { font-family: test900; }
.w1 .fs3 { font-family: test100; }
.w2 .fs3 { font-family: test100; }
.w3 .fs3 { font-family: test100; }
.w4 .fs3 { font-family: test100; }
.w5 .fs3 { font-family: test100; }
.w6 .fs3 { font-family: test900; }
.w7 .fs3 { font-family: test900; }
.w8 .fs3 { font-family: test900; }
.w9 .fs3 { font-family: test900; }
.w1 .fs4 { font-family: test100; }
.w2 .fs4 { font-family: test100; }
.w3 .fs4 { font-family: test100; }
.w4 .fs4 { font-family: test100; }
.w5 .fs4 { font-family: test100; }
.w6 .fs4 { font-family: test900; }
.w7 .fs4 { font-family: test900; }
.w8 .fs4 { font-family: test900; }
.w9 .fs4 { font-family: test900; }
.w1 .fs5 { font-family: test200; }
.w2 .fs5 { font-family: test200; }
.w3 .fs5 { font-family: test200; }
.w4 .fs5 { font-family: test500; }
.w5 .fs5 { font-family: test500; }
.w6 .fs5 { font-family: test500; }
.w7 .fs5 { font-family: test500; }
.w8 .fs5 { font-family: test500; }
.w9 .fs5 { font-family: test500; }
.w1 .fs6 { font-family: test200; }
.w2 .fs6 { font-family: test200; }
.w3 .fs6 { font-family: test200; }
.w4 .fs6 { font-family: test500; }
.w5 .fs6 { font-family: test500; }
.w6 .fs6 { font-family: test500; }
.w7 .fs6 { font-family: test500; }
.w8 .fs6 { font-family: test500; }
.w9 .fs6 { font-family: test500; }
.w1 .fs7 { font-family: test200; }
.w2 .fs7 { font-family: test200; }
.w3 .fs7 { font-family: test200; }
.w4 .fs7 { font-family: test500; }
.w5 .fs7 { font-family: test500; }
.w6 .fs7 { font-family: test500; }
.w7 .fs7 { font-family: test500; }
.w8 .fs7 { font-family: test500; }
.w9 .fs7 { font-family: test500; }
.w1 .fs8 { font-family: test200; }
.w2 .fs8 { font-family: test200; }
.w3 .fs8 { font-family: test200; }
.w4 .fs8 { font-family: test500; }
.w5 .fs8 { font-family: test500; }
.w6 .fs8 { font-family: test500; }
.w7 .fs8 { font-family: test500; }
.w8 .fs8 { font-family: test500; }
.w9 .fs8 { font-family: test500; }
.w1 .fs9 { font-family: test200; }
.w2 .fs9 { font-family: test200; }
.w3 .fs9 { font-family: test200; }
.w4 .fs9 { font-family: test500; }
.w5 .fs9 { font-family: test500; }
.w6 .fs9 { font-family: test500; }
.w7 .fs9 { font-family: test500; }
.w8 .fs9 { font-family: test500; }
.w9 .fs9 { font-family: test500; }
</style>
</head>
<body>
<p>Font family with normal width 200, 500 and condensed 100, 900</p>
<table>
<thead>
<th></th>
<th>1</th>
<th>2</th>
<th class="red">3</th>
<th>4</th>
<th class="red">5</th>
<th>6</th>
<th>7</th>
<th>8</th>
<th>9</th>
</thead>
<tr class="w1">
<th>100</th>
<td class="fs1"><span></span></td>
<td class="fs2"><span></span></td>
<td class="fs3"><span></span></td>
<td class="fs4"><span></span></td>
<td class="fs5"><span></span></td>
<td class="fs6"><span></span></td>
<td class="fs7"><span></span></td>
<td class="fs8"><span></span></td>
<td class="fs9"><span></span></td>
</tr>
<tr class="w2">
<th>200</th>
<td class="fs1"><span></span></td>
<td class="fs2"><span></span></td>
<td class="fs3"><span></span></td>
<td class="fs4"><span></span></td>
<td class="fs5"><span></span></td>
<td class="fs6"><span></span></td>
<td class="fs7"><span></span></td>
<td class="fs8"><span></span></td>
<td class="fs9"><span></span></td>
</tr>
<tr class="w3">
<th>300</th>
<td class="fs1"><span></span></td>
<td class="fs2"><span></span></td>
<td class="fs3"><span></span></td>
<td class="fs4"><span></span></td>
<td class="fs5"><span></span></td>
<td class="fs6"><span></span></td>
<td class="fs7"><span></span></td>
<td class="fs8"><span></span></td>
<td class="fs9"><span></span></td>
</tr>
<tr class="w4">
<th>400</th>
<td class="fs1"><span></span></td>
<td class="fs2"><span></span></td>
<td class="fs3"><span></span></td>
<td class="fs4"><span></span></td>
<td class="fs5"><span></span></td>
<td class="fs6"><span></span></td>
<td class="fs7"><span></span></td>
<td class="fs8"><span></span></td>
<td class="fs9"><span></span></td>
</tr>
<tr class="w5">
<th>500</th>
<td class="fs1"><span></span></td>
<td class="fs2"><span></span></td>
<td class="fs3"><span></span></td>
<td class="fs4"><span></span></td>
<td class="fs5"><span></span></td>
<td class="fs6"><span></span></td>
<td class="fs7"><span></span></td>
<td class="fs8"><span></span></td>
<td class="fs9"><span></span></td>
</tr>
<tr class="w6">
<th>600</th>
<td class="fs1"><span></span></td>
<td class="fs2"><span></span></td>
<td class="fs3"><span></span></td>
<td class="fs4"><span></span></td>
<td class="fs5"><span></span></td>
<td class="fs6"><span></span></td>
<td class="fs7"><span></span></td>
<td class="fs8"><span></span></td>
<td class="fs9"><span></span></td>
</tr>
<tr class="w7">
<th>700</th>
<td class="fs1"><span></span></td>
<td class="fs2"><span></span></td>
<td class="fs3"><span></span></td>
<td class="fs4"><span></span></td>
<td class="fs5"><span></span></td>
<td class="fs6"><span></span></td>
<td class="fs7"><span></span></td>
<td class="fs8"><span></span></td>
<td class="fs9"><span></span></td>
</tr>
<tr class="w8">
<th>800</th>
<td class="fs1"><span></span></td>
<td class="fs2"><span></span></td>
<td class="fs3"><span></span></td>
<td class="fs4"><span></span></td>
<td class="fs5"><span></span></td>
<td class="fs6"><span></span></td>
<td class="fs7"><span></span></td>
<td class="fs8"><span></span></td>
<td class="fs9"><span></span></td>
</tr>
<tr class="w9">
<th>900</th>
<td class="fs1"><span></span></td>
<td class="fs2"><span></span></td>
<td class="fs3"><span></span></td>
<td class="fs4"><span></span></td>
<td class="fs5"><span></span></td>
<td class="fs6"><span></span></td>
<td class="fs7"><span></span></td>
<td class="fs8"><span></span></td>
<td class="fs9"><span></span></td>
</tr>
</table>
</body>
</html>

Просмотреть файл

@ -0,0 +1,240 @@
<!DOCTYPE HTML>
<html>
<head>
<title>font-stretch mapping tests</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<style type="text/css">
body {
margin: 50px;
font-family: Verdana, sans-serif;
}
h3, h4 { font-weight: normal; }
table {
border-collapse: collapse;
font-size: 28px;
}
td {
padding: 0; margin: 0;
font-family: test;
}
th {
font-weight: inherit;
}
p { width: 300px; }
.red { color: red; }
thead { font-weight: 400; font-size: 75%; }
/* make all the spans blocks to avoid influence of what's outside them
on line-height calculations */
span { display: block; }
@font-face {
font-family: test;
src: url(../fonts/mplus/mplus-1p-light.ttf);
font-weight: 200;
}
@font-face {
font-family: test;
src: url(../fonts/mplus/mplus-1p-medium.ttf);
font-weight: 500;
}
@font-face {
font-family: test;
src: url(../fonts/mplus/mplus-1p-thin.ttf);
font-weight: 100;
font-stretch: condensed;
}
@font-face {
font-family: test;
src: url(../fonts/mplus/mplus-1p-black.ttf);
font-weight: 900;
font-stretch: condensed;
}
@font-face {
font-family: test100;
src: url(../fonts/mplus/mplus-1p-thin.ttf);
font-weight: 100;
}
@font-face {
font-family: test200;
src: url(../fonts/mplus/mplus-1p-light.ttf);
font-weight: 200;
}
@font-face {
font-family: test500;
src: url(../fonts/mplus/mplus-1p-medium.ttf);
font-weight: 500;
}
@font-face {
font-family: test900;
src: url(../fonts/mplus/mplus-1p-black.ttf);
font-weight: 900;
}
.w1 { font-weight: 100; }
.w2 { font-weight: 200; }
.w3 { font-weight: 300; }
.w4 { font-weight: 400; }
.w5 { font-weight: 500; }
.w6 { font-weight: 600; }
.w7 { font-weight: 700; }
.w8 { font-weight: 800; }
.w9 { font-weight: 900; }
.fs1 { font-stretch: ultra-condensed; }
.fs2 { font-stretch: extra-condensed; }
.fs3 { font-stretch: condensed; }
.fs4 { font-stretch: semi-condensed; }
.fs5 { font-stretch: normal; }
.fs6 { font-stretch: semi-expanded; }
.fs7 { font-stretch: expanded; }
.fs8 { font-stretch: extra-expanded; }
.fs9 { font-stretch: ultra-expanded; }
</style>
</head>
<body>
<p>Font family with normal width 200, 500 and condensed 100, 900</p>
<table>
<thead>
<th></th>
<th>1</th>
<th>2</th>
<th class="red">3</th>
<th>4</th>
<th class="red">5</th>
<th>6</th>
<th>7</th>
<th>8</th>
<th>9</th>
</thead>
<tr class="w1">
<th>100</th>
<td class="fs1"><span></span></td>
<td class="fs2"><span></span></td>
<td class="fs3"><span></span></td>
<td class="fs4"><span></span></td>
<td class="fs5"><span></span></td>
<td class="fs6"><span></span></td>
<td class="fs7"><span></span></td>
<td class="fs8"><span></span></td>
<td class="fs9"><span></span></td>
</tr>
<tr class="w2">
<th>200</th>
<td class="fs1"><span></span></td>
<td class="fs2"><span></span></td>
<td class="fs3"><span></span></td>
<td class="fs4"><span></span></td>
<td class="fs5"><span></span></td>
<td class="fs6"><span></span></td>
<td class="fs7"><span></span></td>
<td class="fs8"><span></span></td>
<td class="fs9"><span></span></td>
</tr>
<tr class="w3">
<th>300</th>
<td class="fs1"><span></span></td>
<td class="fs2"><span></span></td>
<td class="fs3"><span></span></td>
<td class="fs4"><span></span></td>
<td class="fs5"><span></span></td>
<td class="fs6"><span></span></td>
<td class="fs7"><span></span></td>
<td class="fs8"><span></span></td>
<td class="fs9"><span></span></td>
</tr>
<tr class="w4">
<th>400</th>
<td class="fs1"><span></span></td>
<td class="fs2"><span></span></td>
<td class="fs3"><span></span></td>
<td class="fs4"><span></span></td>
<td class="fs5"><span></span></td>
<td class="fs6"><span></span></td>
<td class="fs7"><span></span></td>
<td class="fs8"><span></span></td>
<td class="fs9"><span></span></td>
</tr>
<tr class="w5">
<th>500</th>
<td class="fs1"><span></span></td>
<td class="fs2"><span></span></td>
<td class="fs3"><span></span></td>
<td class="fs4"><span></span></td>
<td class="fs5"><span></span></td>
<td class="fs6"><span></span></td>
<td class="fs7"><span></span></td>
<td class="fs8"><span></span></td>
<td class="fs9"><span></span></td>
</tr>
<tr class="w6">
<th>600</th>
<td class="fs1"><span></span></td>
<td class="fs2"><span></span></td>
<td class="fs3"><span></span></td>
<td class="fs4"><span></span></td>
<td class="fs5"><span></span></td>
<td class="fs6"><span></span></td>
<td class="fs7"><span></span></td>
<td class="fs8"><span></span></td>
<td class="fs9"><span></span></td>
</tr>
<tr class="w7">
<th>700</th>
<td class="fs1"><span></span></td>
<td class="fs2"><span></span></td>
<td class="fs3"><span></span></td>
<td class="fs4"><span></span></td>
<td class="fs5"><span></span></td>
<td class="fs6"><span></span></td>
<td class="fs7"><span></span></td>
<td class="fs8"><span></span></td>
<td class="fs9"><span></span></td>
</tr>
<tr class="w8">
<th>800</th>
<td class="fs1"><span></span></td>
<td class="fs2"><span></span></td>
<td class="fs3"><span></span></td>
<td class="fs4"><span></span></td>
<td class="fs5"><span></span></td>
<td class="fs6"><span></span></td>
<td class="fs7"><span></span></td>
<td class="fs8"><span></span></td>
<td class="fs9"><span></span></td>
</tr>
<tr class="w9">
<th>900</th>
<td class="fs1"><span></span></td>
<td class="fs2"><span></span></td>
<td class="fs3"><span></span></td>
<td class="fs4"><span></span></td>
<td class="fs5"><span></span></td>
<td class="fs6"><span></span></td>
<td class="fs7"><span></span></td>
<td class="fs8"><span></span></td>
<td class="fs9"><span></span></td>
</tr>
</table>
</body>
</html>

Просмотреть файл

@ -0,0 +1,366 @@
<!DOCTYPE HTML>
<html>
<head>
<title>font-stretch matching tests</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<style type="text/css">
body {
margin: 50px;
font-family: Calibri, Verdana, sans-serif;
}
p { margin: 0; padding: 0; }
table {
border-collapse: collapse;
}
th {
font-weight: normal;
background-color: #eee;
}
th, td { width: 3em; text-align: left; }
tr th { text-align: left; }
.fstest-full { font-family: fstest-full; }
@font-face {
font-family: fstest-full;
src: url(../fonts/csstest-widths-wd1.ttf);
font-stretch: ultra-condensed;
}
@font-face {
font-family: fstest-full;
src: url(../fonts/csstest-widths-wd2.ttf);
font-stretch: extra-condensed;
}
@font-face {
font-family: fstest-full;
src: url(../fonts/csstest-widths-wd3.ttf);
font-stretch: condensed;
}
@font-face {
font-family: fstest-full;
src: url(../fonts/csstest-widths-wd4.ttf);
font-stretch: semi-condensed;
}
@font-face {
font-family: fstest-full;
src: url(../fonts/csstest-widths-wd5.ttf);
font-stretch: normal;
}
@font-face {
font-family: fstest-full;
src: url(../fonts/csstest-widths-wd6.ttf);
font-stretch: semi-expanded;
}
@font-face {
font-family: fstest-full;
src: url(../fonts/csstest-widths-wd7.ttf);
font-stretch: expanded;
}
@font-face {
font-family: fstest-full;
src: url(../fonts/csstest-widths-wd8.ttf);
font-stretch: extra-expanded;
}
@font-face {
font-family: fstest-full;
src: url(../fonts/csstest-widths-wd9.ttf);
font-stretch: ultra-expanded;
}
.fstest-1-3 { font-family: fstest-1-3; }
@font-face {
font-family: fstest-1-3;
src: url(../fonts/csstest-widths-wd1.ttf);
font-stretch: ultra-condensed;
}
@font-face {
font-family: fstest-1-3;
src: url(../fonts/csstest-widths-wd3.ttf);
font-stretch: condensed;
}
.fstest-1-4 { font-family: fstest-1-4; }
@font-face {
font-family: fstest-1-4;
src: url(../fonts/csstest-widths-wd1.ttf);
font-stretch: ultra-condensed;
}
@font-face {
font-family: fstest-1-4;
src: url(../fonts/csstest-widths-wd4.ttf);
font-stretch: semi-condensed;
}
.fstest-1-5 { font-family: fstest-1-5; }
@font-face {
font-family: fstest-1-5;
src: url(../fonts/csstest-widths-wd1.ttf);
font-stretch: ultra-condensed;
}
@font-face {
font-family: fstest-1-5;
src: url(../fonts/csstest-widths-wd5.ttf);
font-stretch: normal;
}
.fstest-2-6 { font-family: fstest-2-6; }
@font-face {
font-family: fstest-2-6;
src: url(../fonts/csstest-widths-wd2.ttf);
font-stretch: extra-condensed;
}
@font-face {
font-family: fstest-2-6;
src: url(../fonts/csstest-widths-wd6.ttf);
font-stretch: semi-expanded;
}
.fstest-4-6 { font-family: fstest-4-6; }
@font-face {
font-family: fstest-4-6;
src: url(../fonts/csstest-widths-wd4.ttf);
font-stretch: semi-condensed;
}
@font-face {
font-family: fstest-4-6;
src: url(../fonts/csstest-widths-wd6.ttf);
font-stretch: semi-expanded;
}
.fstest-4-7 { font-family: fstest-4-7; }
@font-face {
font-family: fstest-4-7;
src: url(../fonts/csstest-widths-wd4.ttf);
font-stretch: semi-condensed;
}
@font-face {
font-family: fstest-4-7;
src: url(../fonts/csstest-widths-wd7.ttf);
font-stretch: expanded;
}
.fstest-6-7 { font-family: fstest-6-7; }
@font-face {
font-family: fstest-6-7;
src: url(../fonts/csstest-widths-wd6.ttf);
font-stretch: semi-expanded;
}
@font-face {
font-family: fstest-6-7;
src: url(../fonts/csstest-widths-wd7.ttf);
font-stretch: expanded;
}
.fstest-7-9 { font-family: fstest-7-9; }
@font-face {
font-family: fstest-7-9;
src: url(../fonts/csstest-widths-wd7.ttf);
font-stretch: expanded;
}
@font-face {
font-family: fstest-7-9;
src: url(../fonts/csstest-widths-wd9.ttf);
font-stretch: ultra-expanded;
}
.fstest-8-9 { font-family: fstest-8-9; }
@font-face {
font-family: fstest-8-9;
src: url(../fonts/csstest-widths-wd8.ttf);
font-stretch: extra-expanded;
}
@font-face {
font-family: fstest-8-9;
src: url(../fonts/csstest-widths-wd9.ttf);
font-stretch: ultra-expanded;
}
.fs1 { font-stretch: ultra-condensed; }
.fs2 { font-stretch: extra-condensed; }
.fs3 { font-stretch: condensed; }
.fs4 { font-stretch: semi-condensed; }
.fs5 { font-stretch: normal; }
.fs6 { font-stretch: semi-expanded; }
.fs7 { font-stretch: expanded; }
.fs8 { font-stretch: extra-expanded; }
.fs9 { font-stretch: ultra-expanded; }
</style>
<script type="text/javascript">
</script>
</head>
<body>
<p>font-stretch mapping with different font family sets</p>
<p>(only numbers should appear in the body of the table)</p>
<table>
<thead>
<th>width</th>
<th>full</th>
<th>1-3</th>
<th>1-4</th>
<th>1-5</th>
<th>2-6</th>
<th>4-6</th>
<th>4-7</th>
<th>6-7</th>
<th>7-9</th>
<th>8-9</th>
</thead>
<tr class="fs1">
<th>1</th>
<td class="fstest-full">1</td>
<td class="fstest-1-3">1</td>
<td class="fstest-1-4">1</td>
<td class="fstest-1-5">1</td>
<td class="fstest-2-6">2</td>
<td class="fstest-4-6">4</td>
<td class="fstest-4-7">4</td>
<td class="fstest-6-7">6</td>
<td class="fstest-7-9">7</td>
<td class="fstest-8-9">8</td>
</tr>
<tr class="fs2">
<th>2</th>
<td class="fstest-full">2</td>
<td class="fstest-1-3">1</td>
<td class="fstest-1-4">1</td>
<td class="fstest-1-5">1</td>
<td class="fstest-2-6">2</td>
<td class="fstest-4-6">4</td>
<td class="fstest-4-7">4</td>
<td class="fstest-6-7">6</td>
<td class="fstest-7-9">7</td>
<td class="fstest-8-9">8</td>
</tr>
<tr class="fs3">
<th>3</th>
<td class="fstest-full">3</td>
<td class="fstest-1-3">3</td>
<td class="fstest-1-4">1</td>
<td class="fstest-1-5">1</td>
<td class="fstest-2-6">2</td>
<td class="fstest-4-6">4</td>
<td class="fstest-4-7">4</td>
<td class="fstest-6-7">6</td>
<td class="fstest-7-9">7</td>
<td class="fstest-8-9">8</td>
</tr>
<tr class="fs4">
<th>4</th>
<td class="fstest-full">4</td>
<td class="fstest-1-3">3</td>
<td class="fstest-1-4">4</td>
<td class="fstest-1-5">1</td>
<td class="fstest-2-6">2</td>
<td class="fstest-4-6">4</td>
<td class="fstest-4-7">4</td>
<td class="fstest-6-7">6</td>
<td class="fstest-7-9">7</td>
<td class="fstest-8-9">8</td>
</tr>
<tr class="fs5">
<th>5</th>
<td class="fstest-full">5</td>
<td class="fstest-1-3">3</td>
<td class="fstest-1-4">4</td>
<td class="fstest-1-5">5</td>
<td class="fstest-2-6">2</td>
<td class="fstest-4-6">4</td>
<td class="fstest-4-7">4</td>
<td class="fstest-6-7">6</td>
<td class="fstest-7-9">7</td>
<td class="fstest-8-9">8</td>
</tr>
<tr class="fs6">
<th>6</th>
<td class="fstest-full">6</td>
<td class="fstest-1-3">3</td>
<td class="fstest-1-4">4</td>
<td class="fstest-1-5">5</td>
<td class="fstest-2-6">6</td>
<td class="fstest-4-6">6</td>
<td class="fstest-4-7">7</td>
<td class="fstest-6-7">6</td>
<td class="fstest-7-9">7</td>
<td class="fstest-8-9">8</td>
</tr>
<tr class="fs7">
<th>7</th>
<td class="fstest-full">7</td>
<td class="fstest-1-3">3</td>
<td class="fstest-1-4">4</td>
<td class="fstest-1-5">5</td>
<td class="fstest-2-6">6</td>
<td class="fstest-4-6">6</td>
<td class="fstest-4-7">7</td>
<td class="fstest-6-7">7</td>
<td class="fstest-7-9">7</td>
<td class="fstest-8-9">8</td>
</tr>
<tr class="fs8">
<th>8</th>
<td class="fstest-full">8</td>
<td class="fstest-1-3">3</td>
<td class="fstest-1-4">4</td>
<td class="fstest-1-5">5</td>
<td class="fstest-2-6">6</td>
<td class="fstest-4-6">6</td>
<td class="fstest-4-7">7</td>
<td class="fstest-6-7">7</td>
<td class="fstest-7-9">9</td>
<td class="fstest-8-9">8</td>
</tr>
<tr class="fs9">
<th>9</th>
<td class="fstest-full">9</td>
<td class="fstest-1-3">3</td>
<td class="fstest-1-4">4</td>
<td class="fstest-1-5">5</td>
<td class="fstest-2-6">6</td>
<td class="fstest-4-6">6</td>
<td class="fstest-4-7">7</td>
<td class="fstest-6-7">7</td>
<td class="fstest-7-9">9</td>
<td class="fstest-8-9">9</td>
</tr>
</table>
</body>
</html>

Просмотреть файл

@ -0,0 +1,505 @@
<!DOCTYPE HTML>
<html>
<head>
<title>font-stretch matching tests</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<style type="text/css">
body {
margin: 50px;
font-family: Calibri, Verdana, sans-serif;
}
p { margin: 0; padding: 0; }
table {
border-collapse: collapse;
}
th {
font-weight: normal;
background-color: #eee;
}
th, td { width: 3em; text-align: left; }
tr th { text-align: left; }
.fstest-full { font-family: fstest-full; }
@font-face {
font-family: fstest-full;
src: url(../fonts/csstest-widths-wd1.ttf);
font-stretch: ultra-condensed;
}
@font-face {
font-family: fstest-full;
src: url(../fonts/csstest-widths-wd2.ttf);
font-stretch: extra-condensed;
}
@font-face {
font-family: fstest-full;
src: url(../fonts/csstest-widths-wd3.ttf);
font-stretch: condensed;
}
@font-face {
font-family: fstest-full;
src: url(../fonts/csstest-widths-wd4.ttf);
font-stretch: semi-condensed;
}
@font-face {
font-family: fstest-full;
src: url(../fonts/csstest-widths-wd5.ttf);
font-stretch: normal;
}
@font-face {
font-family: fstest-full;
src: url(../fonts/csstest-widths-wd6.ttf);
font-stretch: semi-expanded;
}
@font-face {
font-family: fstest-full;
src: url(../fonts/csstest-widths-wd7.ttf);
font-stretch: expanded;
}
@font-face {
font-family: fstest-full;
src: url(../fonts/csstest-widths-wd8.ttf);
font-stretch: extra-expanded;
}
@font-face {
font-family: fstest-full;
src: url(../fonts/csstest-widths-wd9.ttf);
font-stretch: ultra-expanded;
}
.fstest-1-3 { font-family: fstest-1-3; }
@font-face {
font-family: fstest-1-3;
src: url(../fonts/csstest-widths-wd1.ttf);
font-stretch: ultra-condensed;
}
@font-face {
font-family: fstest-1-3;
src: url(../fonts/csstest-widths-wd3.ttf);
font-stretch: condensed;
}
.fstest-1-4 { font-family: fstest-1-4; }
@font-face {
font-family: fstest-1-4;
src: url(../fonts/csstest-widths-wd1.ttf);
font-stretch: ultra-condensed;
}
@font-face {
font-family: fstest-1-4;
src: url(../fonts/csstest-widths-wd4.ttf);
font-stretch: semi-condensed;
}
.fstest-1-5 { font-family: fstest-1-5; }
@font-face {
font-family: fstest-1-5;
src: url(../fonts/csstest-widths-wd1.ttf);
font-stretch: ultra-condensed;
}
@font-face {
font-family: fstest-1-5;
src: url(../fonts/csstest-widths-wd5.ttf);
font-stretch: normal;
}
.fstest-2-6 { font-family: fstest-2-6; }
@font-face {
font-family: fstest-2-6;
src: url(../fonts/csstest-widths-wd2.ttf);
font-stretch: extra-condensed;
}
@font-face {
font-family: fstest-2-6;
src: url(../fonts/csstest-widths-wd6.ttf);
font-stretch: semi-expanded;
}
.fstest-4-6 { font-family: fstest-4-6; }
@font-face {
font-family: fstest-4-6;
src: url(../fonts/csstest-widths-wd4.ttf);
font-stretch: semi-condensed;
}
@font-face {
font-family: fstest-4-6;
src: url(../fonts/csstest-widths-wd6.ttf);
font-stretch: semi-expanded;
}
.fstest-4-7 { font-family: fstest-4-7; }
@font-face {
font-family: fstest-4-7;
src: url(../fonts/csstest-widths-wd4.ttf);
font-stretch: semi-condensed;
}
@font-face {
font-family: fstest-4-7;
src: url(../fonts/csstest-widths-wd7.ttf);
font-stretch: expanded;
}
.fstest-6-7 { font-family: fstest-6-7; }
@font-face {
font-family: fstest-6-7;
src: url(../fonts/csstest-widths-wd6.ttf);
font-stretch: semi-expanded;
}
@font-face {
font-family: fstest-6-7;
src: url(../fonts/csstest-widths-wd7.ttf);
font-stretch: expanded;
}
.fstest-7-9 { font-family: fstest-7-9; }
@font-face {
font-family: fstest-7-9;
src: url(../fonts/csstest-widths-wd7.ttf);
font-stretch: expanded;
}
@font-face {
font-family: fstest-7-9;
src: url(../fonts/csstest-widths-wd9.ttf);
font-stretch: ultra-expanded;
}
.fstest-8-9 { font-family: fstest-8-9; }
@font-face {
font-family: fstest-8-9;
src: url(../fonts/csstest-widths-wd8.ttf);
font-stretch: extra-expanded;
}
@font-face {
font-family: fstest-8-9;
src: url(../fonts/csstest-widths-wd9.ttf);
font-stretch: ultra-expanded;
}
.fs1 { font-stretch: ultra-condensed; }
.fs2 { font-stretch: extra-condensed; }
.fs3 { font-stretch: condensed; }
.fs4 { font-stretch: semi-condensed; }
.fs5 { font-stretch: normal; }
.fs6 { font-stretch: semi-expanded; }
.fs7 { font-stretch: expanded; }
.fs8 { font-stretch: extra-expanded; }
.fs9 { font-stretch: ultra-expanded; }
</style>
<script type="text/javascript">
</script>
</head>
<body>
<p>font-stretch mapping with different font family sets</p>
<p>(only numbers should appear in the body of the table)</p>
<table>
<thead>
<th>width</th>
<th>full</th>
<th>1-3</th>
<th>1-4</th>
<th>1-5</th>
<th>2-6</th>
<th>4-6</th>
<th>4-7</th>
<th>6-7</th>
<th>7-9</th>
<th>8-9</th>
</thead>
<tr class="fs1">
<th>1</th>
<td class="fstest-full">F</td>
<td class="fstest-1-3">F</td>
<td class="fstest-1-4">F</td>
<td class="fstest-1-5">F</td>
<td class="fstest-2-6">F</td>
<td class="fstest-4-6">F</td>
<td class="fstest-4-7">F</td>
<td class="fstest-6-7">F</td>
<td class="fstest-7-9">F</td>
<td class="fstest-8-9">F</td>
</tr>
<tr class="fs2">
<th>2</th>
<td class="fstest-full">F</td>
<td class="fstest-1-3">F</td>
<td class="fstest-1-4">F</td>
<td class="fstest-1-5">F</td>
<td class="fstest-2-6">F</td>
<td class="fstest-4-6">F</td>
<td class="fstest-4-7">F</td>
<td class="fstest-6-7">F</td>
<td class="fstest-7-9">F</td>
<td class="fstest-8-9">F</td>
</tr>
<tr class="fs3">
<th>3</th>
<td class="fstest-full">F</td>
<td class="fstest-1-3">F</td>
<td class="fstest-1-4">F</td>
<td class="fstest-1-5">F</td>
<td class="fstest-2-6">F</td>
<td class="fstest-4-6">F</td>
<td class="fstest-4-7">F</td>
<td class="fstest-6-7">F</td>
<td class="fstest-7-9">F</td>
<td class="fstest-8-9">F</td>
</tr>
<tr class="fs4">
<th>4</th>
<td class="fstest-full">F</td>
<td class="fstest-1-3">F</td>
<td class="fstest-1-4">F</td>
<td class="fstest-1-5">F</td>
<td class="fstest-2-6">F</td>
<td class="fstest-4-6">F</td>
<td class="fstest-4-7">F</td>
<td class="fstest-6-7">F</td>
<td class="fstest-7-9">F</td>
<td class="fstest-8-9">F</td>
</tr>
<tr class="fs5">
<th>5</th>
<td class="fstest-full">F</td>
<td class="fstest-1-3">F</td>
<td class="fstest-1-4">F</td>
<td class="fstest-1-5">F</td>
<td class="fstest-2-6">F</td>
<td class="fstest-4-6">F</td>
<td class="fstest-4-7">F</td>
<td class="fstest-6-7">F</td>
<td class="fstest-7-9">F</td>
<td class="fstest-8-9">F</td>
</tr>
<tr class="fs6">
<th>6</th>
<td class="fstest-full">F</td>
<td class="fstest-1-3">F</td>
<td class="fstest-1-4">F</td>
<td class="fstest-1-5">F</td>
<td class="fstest-2-6">F</td>
<td class="fstest-4-6">F</td>
<td class="fstest-4-7">F</td>
<td class="fstest-6-7">F</td>
<td class="fstest-7-9">F</td>
<td class="fstest-8-9">F</td>
</tr>
<tr class="fs7">
<th>7</th>
<td class="fstest-full">F</td>
<td class="fstest-1-3">F</td>
<td class="fstest-1-4">F</td>
<td class="fstest-1-5">F</td>
<td class="fstest-2-6">F</td>
<td class="fstest-4-6">F</td>
<td class="fstest-4-7">F</td>
<td class="fstest-6-7">F</td>
<td class="fstest-7-9">F</td>
<td class="fstest-8-9">F</td>
</tr>
<tr class="fs8">
<th>8</th>
<td class="fstest-full">F</td>
<td class="fstest-1-3">F</td>
<td class="fstest-1-4">F</td>
<td class="fstest-1-5">F</td>
<td class="fstest-2-6">F</td>
<td class="fstest-4-6">F</td>
<td class="fstest-4-7">F</td>
<td class="fstest-6-7">F</td>
<td class="fstest-7-9">F</td>
<td class="fstest-8-9">F</td>
</tr>
<tr class="fs9">
<th>9</th>
<td class="fstest-full">F</td>
<td class="fstest-1-3">F</td>
<td class="fstest-1-4">F</td>
<td class="fstest-1-5">F</td>
<td class="fstest-2-6">F</td>
<td class="fstest-4-6">F</td>
<td class="fstest-4-7">F</td>
<td class="fstest-6-7">F</td>
<td class="fstest-7-9">F</td>
<td class="fstest-8-9">F</td>
</tr>
</table>
<!--
<p>Results based on spec logic:</p>
<table>
<thead>
<th>width</th>
<th>full</th>
<th>1-3</th>
<th>1-4</th>
<th>1-5</th>
<th>2-6</th>
<th>4-6</th>
<th>4-7</th>
<th>6-7</th>
<th>7-9</th>
<th>8-9</th>
</thead>
<tr class="fs1">
<th>1</th>
<td class="fstest-full">1</td>
<td class="fstest-1-3">1</td>
<td class="fstest-1-4">1</td>
<td class="fstest-1-5">1</td>
<td class="fstest-2-6">2</td>
<td class="fstest-4-6">4</td>
<td class="fstest-4-7">4</td>
<td class="fstest-6-7">6</td>
<td class="fstest-7-9">7</td>
<td class="fstest-8-9">8</td>
</tr>
<tr class="fs2">
<th>2</th>
<td class="fstest-full">2</td>
<td class="fstest-1-3">1</td>
<td class="fstest-1-4">1</td>
<td class="fstest-1-5">1</td>
<td class="fstest-2-6">2</td>
<td class="fstest-4-6">4</td>
<td class="fstest-4-7">4</td>
<td class="fstest-6-7">6</td>
<td class="fstest-7-9">7</td>
<td class="fstest-8-9">8</td>
</tr>
<tr class="fs3">
<th>3</th>
<td class="fstest-full">3</td>
<td class="fstest-1-3">3</td>
<td class="fstest-1-4">1</td>
<td class="fstest-1-5">1</td>
<td class="fstest-2-6">2</td>
<td class="fstest-4-6">4</td>
<td class="fstest-4-7">4</td>
<td class="fstest-6-7">6</td>
<td class="fstest-7-9">7</td>
<td class="fstest-8-9">8</td>
</tr>
<tr class="fs4">
<th>4</th>
<td class="fstest-full">4</td>
<td class="fstest-1-3">3</td>
<td class="fstest-1-4">4</td>
<td class="fstest-1-5">1</td>
<td class="fstest-2-6">2</td>
<td class="fstest-4-6">4</td>
<td class="fstest-4-7">4</td>
<td class="fstest-6-7">6</td>
<td class="fstest-7-9">7</td>
<td class="fstest-8-9">8</td>
</tr>
<tr class="fs5">
<th>5</th>
<td class="fstest-full">5</td>
<td class="fstest-1-3">3</td>
<td class="fstest-1-4">4</td>
<td class="fstest-1-5">5</td>
<td class="fstest-2-6">2</td>
<td class="fstest-4-6">4</td>
<td class="fstest-4-7">4</td>
<td class="fstest-6-7">6</td>
<td class="fstest-7-9">7</td>
<td class="fstest-8-9">8</td>
</tr>
<tr class="fs6">
<th>6</th>
<td class="fstest-full">6</td>
<td class="fstest-1-3">3</td>
<td class="fstest-1-4">4</td>
<td class="fstest-1-5">5</td>
<td class="fstest-2-6">6</td>
<td class="fstest-4-6">6</td>
<td class="fstest-4-7">7</td>
<td class="fstest-6-7">6</td>
<td class="fstest-7-9">7</td>
<td class="fstest-8-9">8</td>
</tr>
<tr class="fs7">
<th>7</th>
<td class="fstest-full">7</td>
<td class="fstest-1-3">3</td>
<td class="fstest-1-4">4</td>
<td class="fstest-1-5">5</td>
<td class="fstest-2-6">6</td>
<td class="fstest-4-6">6</td>
<td class="fstest-4-7">7</td>
<td class="fstest-6-7">7</td>
<td class="fstest-7-9">7</td>
<td class="fstest-8-9">8</td>
</tr>
<tr class="fs8">
<th>8</th>
<td class="fstest-full">8</td>
<td class="fstest-1-3">3</td>
<td class="fstest-1-4">4</td>
<td class="fstest-1-5">5</td>
<td class="fstest-2-6">6</td>
<td class="fstest-4-6">6</td>
<td class="fstest-4-7">7</td>
<td class="fstest-6-7">7</td>
<td class="fstest-7-9">9</td>
<td class="fstest-8-9">8</td>
</tr>
<tr class="fs9">
<th>9</th>
<td class="fstest-full">9</td>
<td class="fstest-1-3">3</td>
<td class="fstest-1-4">4</td>
<td class="fstest-1-5">5</td>
<td class="fstest-2-6">6</td>
<td class="fstest-4-6">6</td>
<td class="fstest-4-7">7</td>
<td class="fstest-6-7">7</td>
<td class="fstest-7-9">9</td>
<td class="fstest-8-9">9</td>
</tr>
</table>
-->
</body>
</html>

Просмотреть файл

@ -0,0 +1,54 @@
<!DOCTYPE HTML>
<html>
<head>
<title>Assure OS/2 usWidthClass isn't referenced</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<style type="text/css">
@font-face {
font-family: fstest-full;
src: url(../fonts/csstest-widths-wd5.ttf);
font-stretch: normal;
}
body {
margin: 50px;
}
p.test {
font-family: fstest-full;
font-size: 24px;
}
.fs9 { font-stretch: ultra-condensed; }
.fs8 { font-stretch: extra-condensed; }
.fs7 { font-stretch: condensed; }
.fs6 { font-stretch: semi-condensed; }
.fs5 { font-stretch: normal; }
.fs4 { font-stretch: semi-expanded; }
.fs3 { font-stretch: expanded; }
.fs2 { font-stretch: extra-expanded; }
.fs1 { font-stretch: ultra-expanded; }
</style>
</head>
<body>
<p>The numbers below should appear in ascending sequence:</p>
<p class="test">
<span class="fs1">1</span>
<span class="fs2">2</span>
<span class="fs3">3</span>
<span class="fs4">4</span>
<span class="fs5">5</span>
<span class="fs6">6</span>
<span class="fs7">7</span>
<span class="fs8">8</span>
<span class="fs9">9</span>
</p>
</body>
</html>

Просмотреть файл

@ -0,0 +1,102 @@
<!DOCTYPE HTML>
<html>
<head>
<title>Assure OS/2 usWidthClass isn't referenced</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<style type="text/css">
@font-face {
font-family: fstest-full;
src: url(../fonts/csstest-widths-wd9.ttf);
font-stretch: ultra-condensed;
}
@font-face {
font-family: fstest-full;
src: url(../fonts/csstest-widths-wd8.ttf);
font-stretch: extra-condensed;
}
@font-face {
font-family: fstest-full;
src: url(../fonts/csstest-widths-wd7.ttf);
font-stretch: condensed;
}
@font-face {
font-family: fstest-full;
src: url(../fonts/csstest-widths-wd6.ttf);
font-stretch: semi-condensed;
}
@font-face {
font-family: fstest-full;
src: url(../fonts/csstest-widths-wd5.ttf);
font-stretch: normal;
}
@font-face {
font-family: fstest-full;
src: url(../fonts/csstest-widths-wd4.ttf);
font-stretch: semi-expanded;
}
@font-face {
font-family: fstest-full;
src: url(../fonts/csstest-widths-wd3.ttf);
font-stretch: expanded;
}
@font-face {
font-family: fstest-full;
src: url(../fonts/csstest-widths-wd2.ttf);
font-stretch: extra-expanded;
}
@font-face {
font-family: fstest-full;
src: url(../fonts/csstest-widths-wd1.ttf);
font-stretch: ultra-expanded;
}
body {
margin: 50px;
}
p.test {
font-family: fstest-full;
font-size: 24px;
}
.fs9 { font-stretch: ultra-condensed; }
.fs8 { font-stretch: extra-condensed; }
.fs7 { font-stretch: condensed; }
.fs6 { font-stretch: semi-condensed; }
.fs5 { font-stretch: normal; }
.fs4 { font-stretch: semi-expanded; }
.fs3 { font-stretch: expanded; }
.fs2 { font-stretch: extra-expanded; }
.fs1 { font-stretch: ultra-expanded; }
</style>
</head>
<body>
<p>The numbers below should appear in ascending sequence:</p>
<p class="test">
<span class="fs1">F</span>
<span class="fs2">F</span>
<span class="fs3">F</span>
<span class="fs4">F</span>
<span class="fs5">F</span>
<span class="fs6">F</span>
<span class="fs7">F</span>
<span class="fs8">F</span>
<span class="fs9">F</span>
</p>
</body>
</html>