layout/reftests/font-matching/stretchmapping-137.html

Wed, 31 Dec 2014 06:55:50 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:55:50 +0100
changeset 2
7e26c7da4463
permissions
-rw-r--r--

Added tag UPSTREAM_283F7C6 for changeset ca08bd8f51b2

michael@0 1 <!DOCTYPE HTML>
michael@0 2 <html>
michael@0 3 <head>
michael@0 4 <title>font-stretch mapping tests</title>
michael@0 5 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
michael@0 6
michael@0 7 <style type="text/css">
michael@0 8
michael@0 9 body {
michael@0 10 margin: 50px;
michael@0 11 font-family: Verdana, sans-serif;
michael@0 12 }
michael@0 13
michael@0 14 h3, h4 { font-weight: normal; }
michael@0 15
michael@0 16 table {
michael@0 17 border-collapse: collapse;
michael@0 18 font-size: 28px;
michael@0 19 }
michael@0 20
michael@0 21 td {
michael@0 22 padding: 0; margin: 0;
michael@0 23 font-family: test;
michael@0 24 }
michael@0 25
michael@0 26 th {
michael@0 27 font-weight: inherit;
michael@0 28 }
michael@0 29
michael@0 30 p { width: 300px; }
michael@0 31
michael@0 32 .red { color: red; }
michael@0 33
michael@0 34 thead { font-weight: 400; font-size: 75%; }
michael@0 35
michael@0 36 /* make all the spans blocks to avoid influence of what's outside them
michael@0 37 on line-height calculations */
michael@0 38 span { display: block; }
michael@0 39
michael@0 40 @font-face {
michael@0 41 font-family: test;
michael@0 42 src: url(../fonts/mplus/mplus-1p-thin.ttf);
michael@0 43 font-weight: 100;
michael@0 44 font-stretch: ultra-condensed;
michael@0 45 }
michael@0 46
michael@0 47 @font-face {
michael@0 48 font-family: test;
michael@0 49 src: url(../fonts/mplus/mplus-1p-regular.ttf);
michael@0 50 font-weight: 400;
michael@0 51 font-stretch: ultra-condensed;
michael@0 52 }
michael@0 53
michael@0 54 @font-face {
michael@0 55 font-family: test;
michael@0 56 src: url(../fonts/mplus/mplus-1p-light.ttf);
michael@0 57 font-weight: 200;
michael@0 58 font-stretch: condensed;
michael@0 59 }
michael@0 60
michael@0 61 @font-face {
michael@0 62 font-family: test;
michael@0 63 src: url(../fonts/mplus/mplus-1p-heavy.ttf);
michael@0 64 font-weight: 800;
michael@0 65 font-stretch: condensed;
michael@0 66 }
michael@0 67
michael@0 68 @font-face {
michael@0 69 font-family: test;
michael@0 70 src: url(../fonts/mplus/mplus-1p-medium.ttf);
michael@0 71 font-weight: 500;
michael@0 72 font-stretch: expanded;
michael@0 73 }
michael@0 74
michael@0 75 @font-face {
michael@0 76 font-family: test;
michael@0 77 src: url(../fonts/mplus/mplus-1p-black.ttf);
michael@0 78 font-weight: 900;
michael@0 79 font-stretch: expanded;
michael@0 80 }
michael@0 81
michael@0 82 @font-face {
michael@0 83 font-family: test100;
michael@0 84 src: url(../fonts/mplus/mplus-1p-thin.ttf);
michael@0 85 font-weight: 100;
michael@0 86 }
michael@0 87
michael@0 88 @font-face {
michael@0 89 font-family: test200;
michael@0 90 src: url(../fonts/mplus/mplus-1p-light.ttf);
michael@0 91 font-weight: 200;
michael@0 92 }
michael@0 93
michael@0 94 @font-face {
michael@0 95 font-family: test400;
michael@0 96 src: url(../fonts/mplus/mplus-1p-regular.ttf);
michael@0 97 font-weight: 400;
michael@0 98 }
michael@0 99
michael@0 100 @font-face {
michael@0 101 font-family: test500;
michael@0 102 src: url(../fonts/mplus/mplus-1p-medium.ttf);
michael@0 103 font-weight: 500;
michael@0 104 }
michael@0 105
michael@0 106 @font-face {
michael@0 107 font-family: test800;
michael@0 108 src: url(../fonts/mplus/mplus-1p-heavy.ttf);
michael@0 109 font-weight: 800;
michael@0 110 }
michael@0 111
michael@0 112 @font-face {
michael@0 113 font-family: test900;
michael@0 114 src: url(../fonts/mplus/mplus-1p-black.ttf);
michael@0 115 font-weight: 900;
michael@0 116 }
michael@0 117
michael@0 118 .w1 { font-weight: 100; }
michael@0 119 .w2 { font-weight: 200; }
michael@0 120 .w3 { font-weight: 300; }
michael@0 121 .w4 { font-weight: 400; }
michael@0 122 .w5 { font-weight: 500; }
michael@0 123 .w6 { font-weight: 600; }
michael@0 124 .w7 { font-weight: 700; }
michael@0 125 .w8 { font-weight: 800; }
michael@0 126 .w9 { font-weight: 900; }
michael@0 127
michael@0 128 .fs1 { font-stretch: ultra-condensed; }
michael@0 129 .fs2 { font-stretch: extra-condensed; }
michael@0 130 .fs3 { font-stretch: condensed; }
michael@0 131 .fs4 { font-stretch: semi-condensed; }
michael@0 132 .fs5 { font-stretch: normal; }
michael@0 133 .fs6 { font-stretch: semi-expanded; }
michael@0 134 .fs7 { font-stretch: expanded; }
michael@0 135 .fs8 { font-stretch: extra-expanded; }
michael@0 136 .fs9 { font-stretch: ultra-expanded; }
michael@0 137
michael@0 138 </style>
michael@0 139 </head>
michael@0 140 <body>
michael@0 141
michael@0 142 <p>Font family with ultra-condensed 100, 400, condensed 200, 800 and expanded 500, 900</p>
michael@0 143
michael@0 144 <table>
michael@0 145 <thead>
michael@0 146 <th></th>
michael@0 147 <th class="red">1</th>
michael@0 148 <th>2</th>
michael@0 149 <th class="red">3</th>
michael@0 150 <th>4</th>
michael@0 151 <th>5</th>
michael@0 152 <th>6</th>
michael@0 153 <th class="red">7</th>
michael@0 154 <th>8</th>
michael@0 155 <th>9</th>
michael@0 156 </thead>
michael@0 157 <tr class="w1">
michael@0 158 <th>100</th>
michael@0 159 <td class="fs1"><span>か</span></td>
michael@0 160 <td class="fs2"><span>か</span></td>
michael@0 161 <td class="fs3"><span>か</span></td>
michael@0 162 <td class="fs4"><span>か</span></td>
michael@0 163 <td class="fs5"><span>か</span></td>
michael@0 164 <td class="fs6"><span>か</span></td>
michael@0 165 <td class="fs7"><span>か</span></td>
michael@0 166 <td class="fs8"><span>か</span></td>
michael@0 167 <td class="fs9"><span>か</span></td>
michael@0 168 </tr>
michael@0 169 <tr class="w2">
michael@0 170 <th>200</th>
michael@0 171 <td class="fs1"><span>か</span></td>
michael@0 172 <td class="fs2"><span>か</span></td>
michael@0 173 <td class="fs3"><span>か</span></td>
michael@0 174 <td class="fs4"><span>か</span></td>
michael@0 175 <td class="fs5"><span>か</span></td>
michael@0 176 <td class="fs6"><span>か</span></td>
michael@0 177 <td class="fs7"><span>か</span></td>
michael@0 178 <td class="fs8"><span>か</span></td>
michael@0 179 <td class="fs9"><span>か</span></td>
michael@0 180 </tr>
michael@0 181 <tr class="w3">
michael@0 182 <th>300</th>
michael@0 183 <td class="fs1"><span>か</span></td>
michael@0 184 <td class="fs2"><span>か</span></td>
michael@0 185 <td class="fs3"><span>か</span></td>
michael@0 186 <td class="fs4"><span>か</span></td>
michael@0 187 <td class="fs5"><span>か</span></td>
michael@0 188 <td class="fs6"><span>か</span></td>
michael@0 189 <td class="fs7"><span>か</span></td>
michael@0 190 <td class="fs8"><span>か</span></td>
michael@0 191 <td class="fs9"><span>か</span></td>
michael@0 192 </tr>
michael@0 193 <tr class="w4">
michael@0 194 <th>400</th>
michael@0 195 <td class="fs1"><span>か</span></td>
michael@0 196 <td class="fs2"><span>か</span></td>
michael@0 197 <td class="fs3"><span>か</span></td>
michael@0 198 <td class="fs4"><span>か</span></td>
michael@0 199 <td class="fs5"><span>か</span></td>
michael@0 200 <td class="fs6"><span>か</span></td>
michael@0 201 <td class="fs7"><span>か</span></td>
michael@0 202 <td class="fs8"><span>か</span></td>
michael@0 203 <td class="fs9"><span>か</span></td>
michael@0 204 </tr>
michael@0 205 <tr class="w5">
michael@0 206 <th>500</th>
michael@0 207 <td class="fs1"><span>か</span></td>
michael@0 208 <td class="fs2"><span>か</span></td>
michael@0 209 <td class="fs3"><span>か</span></td>
michael@0 210 <td class="fs4"><span>か</span></td>
michael@0 211 <td class="fs5"><span>か</span></td>
michael@0 212 <td class="fs6"><span>か</span></td>
michael@0 213 <td class="fs7"><span>か</span></td>
michael@0 214 <td class="fs8"><span>か</span></td>
michael@0 215 <td class="fs9"><span>か</span></td>
michael@0 216 </tr>
michael@0 217 <tr class="w6">
michael@0 218 <th>600</th>
michael@0 219 <td class="fs1"><span>か</span></td>
michael@0 220 <td class="fs2"><span>か</span></td>
michael@0 221 <td class="fs3"><span>か</span></td>
michael@0 222 <td class="fs4"><span>か</span></td>
michael@0 223 <td class="fs5"><span>か</span></td>
michael@0 224 <td class="fs6"><span>か</span></td>
michael@0 225 <td class="fs7"><span>か</span></td>
michael@0 226 <td class="fs8"><span>か</span></td>
michael@0 227 <td class="fs9"><span>か</span></td>
michael@0 228 </tr>
michael@0 229 <tr class="w7">
michael@0 230 <th>700</th>
michael@0 231 <td class="fs1"><span>か</span></td>
michael@0 232 <td class="fs2"><span>か</span></td>
michael@0 233 <td class="fs3"><span>か</span></td>
michael@0 234 <td class="fs4"><span>か</span></td>
michael@0 235 <td class="fs5"><span>か</span></td>
michael@0 236 <td class="fs6"><span>か</span></td>
michael@0 237 <td class="fs7"><span>か</span></td>
michael@0 238 <td class="fs8"><span>か</span></td>
michael@0 239 <td class="fs9"><span>か</span></td>
michael@0 240 </tr>
michael@0 241 <tr class="w8">
michael@0 242 <th>800</th>
michael@0 243 <td class="fs1"><span>か</span></td>
michael@0 244 <td class="fs2"><span>か</span></td>
michael@0 245 <td class="fs3"><span>か</span></td>
michael@0 246 <td class="fs4"><span>か</span></td>
michael@0 247 <td class="fs5"><span>か</span></td>
michael@0 248 <td class="fs6"><span>か</span></td>
michael@0 249 <td class="fs7"><span>か</span></td>
michael@0 250 <td class="fs8"><span>か</span></td>
michael@0 251 <td class="fs9"><span>か</span></td>
michael@0 252 </tr>
michael@0 253 <tr class="w9">
michael@0 254 <th>900</th>
michael@0 255 <td class="fs1"><span>か</span></td>
michael@0 256 <td class="fs2"><span>か</span></td>
michael@0 257 <td class="fs3"><span>か</span></td>
michael@0 258 <td class="fs4"><span>か</span></td>
michael@0 259 <td class="fs5"><span>か</span></td>
michael@0 260 <td class="fs6"><span>か</span></td>
michael@0 261 <td class="fs7"><span>か</span></td>
michael@0 262 <td class="fs8"><span>か</span></td>
michael@0 263 <td class="fs9"><span>か</span></td>
michael@0 264 </tr>
michael@0 265 </table>
michael@0 266
michael@0 267 </body>
michael@0 268 </html>

mercurial