layout/reftests/font-matching/weightmapping-45-ref.html

Wed, 31 Dec 2014 07:16:47 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 07:16:47 +0100
branch
TOR_BUG_9701
changeset 3
141e0f1194b1
permissions
-rw-r--r--

Revert simplistic fix pending revisit of Mozilla integration attempt.

michael@0 1 <!DOCTYPE HTML>
michael@0 2 <html>
michael@0 3 <head>
michael@0 4 <title>Weight 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: Futura, Verdana, sans-serif;
michael@0 12 }
michael@0 13
michael@0 14 h3, h4 { font-weight: normal; }
michael@0 15
michael@0 16 /* make all the spans blocks to avoid influence of what's outside them
michael@0 17 on line-height calculations */
michael@0 18 span { display: block; }
michael@0 19
michael@0 20 @font-face {
michael@0 21 font-family: test;
michael@0 22 src: url(../fonts/mplus/mplus-1p-regular.ttf);
michael@0 23 font-weight: normal;
michael@0 24 }
michael@0 25
michael@0 26 @font-face {
michael@0 27 font-family: test;
michael@0 28 src: url(../fonts/mplus/mplus-1p-medium.ttf);
michael@0 29 font-weight: 500;
michael@0 30 }
michael@0 31
michael@0 32 @font-face {
michael@0 33 font-family: test400;
michael@0 34 src: url(../fonts/mplus/mplus-1p-regular.ttf);
michael@0 35 }
michael@0 36
michael@0 37 @font-face {
michael@0 38 font-family: test500;
michael@0 39 src: url(../fonts/mplus/mplus-1p-medium.ttf);
michael@0 40 }
michael@0 41
michael@0 42 table {
michael@0 43 border-collapse: collapse;
michael@0 44 font-family: test;
michael@0 45 font-size: 20px;
michael@0 46 }
michael@0 47
michael@0 48 td {
michael@0 49 padding: 0; margin: 0;
michael@0 50 }
michael@0 51
michael@0 52 th {
michael@0 53 font-weight: inherit;
michael@0 54 }
michael@0 55
michael@0 56 .red { color: red; }
michael@0 57
michael@0 58 th.cnor { font-weight: inherit; }
michael@0 59 th.cbo { font-weight: bolder; }
michael@0 60 th.cbobo, th.cbobo span { font-weight: bolder; }
michael@0 61 th.cli { font-weight: lighter; }
michael@0 62 th.clili, th.clili span { font-weight: lighter; }
michael@0 63
michael@0 64 thead { font-weight: 400; font-size: 75%; }
michael@0 65
michael@0 66 .w1 .clili { font-family: test400; }
michael@0 67 .w1 .cli { font-family: test400; }
michael@0 68 .w1 .cnor { font-family: test400; }
michael@0 69 .w1 .cbo { font-family: test400; }
michael@0 70 .w1 .cbobo { font-family: test500; font-weight: bold; }
michael@0 71
michael@0 72 .w2 .clili { font-family: test400; }
michael@0 73 .w2 .cli { font-family: test400; }
michael@0 74 .w2 .cnor { font-family: test400; }
michael@0 75 .w2 .cbo { font-family: test400; }
michael@0 76 .w2 .cbobo { font-family: test500; font-weight: bold; }
michael@0 77
michael@0 78 .w3 .clili { font-family: test400; }
michael@0 79 .w3 .cli { font-family: test400; }
michael@0 80 .w3 .cnor { font-family: test400; }
michael@0 81 .w3 .cbo { font-family: test400; }
michael@0 82 .w3 .cbobo { font-family: test500; font-weight: bold; }
michael@0 83
michael@0 84 .w4 .clili { font-family: test400; }
michael@0 85 .w4 .cli { font-family: test400; }
michael@0 86 .w4 .cnor { font-family: test400; }
michael@0 87 .w4 .cbo { font-family: test500; font-weight: bold; }
michael@0 88 .w4 .cbobo { font-family: test500; font-weight: bold; }
michael@0 89
michael@0 90 .w5 .clili { font-family: test400; }
michael@0 91 .w5 .cli { font-family: test400; }
michael@0 92 .w5 .cnor { font-family: test500; }
michael@0 93 .w5 .cbo { font-family: test500; font-weight: bold; }
michael@0 94 .w5 .cbobo { font-family: test500; font-weight: bold; }
michael@0 95
michael@0 96 .w6 .clili { font-family: test400; }
michael@0 97 .w6 .cli { font-family: test400; }
michael@0 98 .w6 .cnor { font-family: test500; font-weight: bold; }
michael@0 99 .w6 .cbo { font-family: test500; font-weight: bold; }
michael@0 100 .w6 .cbobo { font-family: test500; font-weight: bold; }
michael@0 101
michael@0 102 .w7 .clili { font-family: test400; }
michael@0 103 .w7 .cli { font-family: test400; }
michael@0 104 .w7 .cnor { font-family: test500; font-weight: bold; }
michael@0 105 .w7 .cbo { font-family: test500; font-weight: bold; }
michael@0 106 .w7 .cbobo { font-family: test500; font-weight: bold; }
michael@0 107
michael@0 108 .w8 .clili { font-family: test400; }
michael@0 109 .w8 .cli { font-family: test500; font-weight: bold; }
michael@0 110 .w8 .cnor { font-family: test500; font-weight: bold; }
michael@0 111 .w8 .cbo { font-family: test500; font-weight: bold; }
michael@0 112 .w8 .cbobo { font-family: test500; font-weight: bold; }
michael@0 113
michael@0 114 .w9 .clili { font-family: test400; }
michael@0 115 .w9 .cli { font-family: test500; font-weight: bold; }
michael@0 116 .w9 .cnor { font-family: test500; font-weight: bold; }
michael@0 117 .w9 .cbo { font-family: test500; font-weight: bold; }
michael@0 118 .w9 .cbobo { font-family: test500; font-weight: bold; }
michael@0 119
michael@0 120 .w1 th { font-weight: 100; }
michael@0 121 .w2 th { font-weight: 200; }
michael@0 122 .w3 th { font-weight: 300; }
michael@0 123 .w4 th { font-weight: 400; }
michael@0 124 .w5 th { font-weight: 500; }
michael@0 125 .w6 th { font-weight: 600; }
michael@0 126 .w7 th { font-weight: 700; }
michael@0 127 .w8 th { font-weight: 800; }
michael@0 128 .w9 th { font-weight: 900; }
michael@0 129
michael@0 130 </style>
michael@0 131 </head>
michael@0 132 <body>
michael@0 133
michael@0 134 <h3>Font family with 400, 500 weights</h3>
michael@0 135
michael@0 136 <table>
michael@0 137 <thead>
michael@0 138 <th></th>
michael@0 139 <th class="clili"><span>lighter lighter</span></th>
michael@0 140 <th class="cli"><span>lighter</span></th>
michael@0 141 <th class="cnor"><span>normal</span></th>
michael@0 142 <th class="cbo"><span>bolder</span></th>
michael@0 143 <th class="cbobo"><span>bolder bolder</span></th>
michael@0 144 </thead>
michael@0 145 <tr class="w1">
michael@0 146 <th>100</th>
michael@0 147 <td class="clili"><span>東京特許許可局</span></td>
michael@0 148 <td class="cli"><span>東京特許許可局</span></td>
michael@0 149 <td class="cnor"><span>東京特許許可局</span></td>
michael@0 150 <td class="cbo"><span>東京特許許可局</span></td>
michael@0 151 <td class="cbobo"><span>東京特許許可局</span></td>
michael@0 152 </tr>
michael@0 153 <tr class="w2">
michael@0 154 <th>200</th>
michael@0 155 <td class="clili"><span>東京特許許可局</span></td>
michael@0 156 <td class="cli"><span>東京特許許可局</span></td>
michael@0 157 <td class="cnor"><span>東京特許許可局</span></td>
michael@0 158 <td class="cbo"><span>東京特許許可局</span></td>
michael@0 159 <td class="cbobo"><span>東京特許許可局</span></td>
michael@0 160 </tr>
michael@0 161 <tr class="w3">
michael@0 162 <th>300</th>
michael@0 163 <td class="clili"><span>東京特許許可局</span></td>
michael@0 164 <td class="cli"><span>東京特許許可局</span></td>
michael@0 165 <td class="cnor"><span>東京特許許可局</span></td>
michael@0 166 <td class="cbo"><span>東京特許許可局</span></td>
michael@0 167 <td class="cbobo"><span>東京特許許可局</span></td>
michael@0 168 </tr>
michael@0 169 <tr class="w4">
michael@0 170 <th class="red">400</th>
michael@0 171 <td class="clili"><span>東京特許許可局</span></td>
michael@0 172 <td class="cli"><span>東京特許許可局</span></td>
michael@0 173 <td class="cnor"><span>東京特許許可局</span></td>
michael@0 174 <td class="cbo"><span>東京特許許可局</span></td>
michael@0 175 <td class="cbobo"><span>東京特許許可局</span></td>
michael@0 176 </tr>
michael@0 177 <tr class="w5">
michael@0 178 <th class="red">500</th>
michael@0 179 <td class="clili"><span>東京特許許可局</span></td>
michael@0 180 <td class="cli"><span>東京特許許可局</span></td>
michael@0 181 <td class="cnor"><span>東京特許許可局</span></td>
michael@0 182 <td class="cbo"><span>東京特許許可局</span></td>
michael@0 183 <td class="cbobo"><span>東京特許許可局</span></td>
michael@0 184 </tr>
michael@0 185 <tr class="w6">
michael@0 186 <th>600</th>
michael@0 187 <td class="clili"><span>東京特許許可局</span></td>
michael@0 188 <td class="cli"><span>東京特許許可局</span></td>
michael@0 189 <td class="cnor"><span>東京特許許可局</span></td>
michael@0 190 <td class="cbo"><span>東京特許許可局</span></td>
michael@0 191 <td class="cbobo"><span>東京特許許可局</span></td>
michael@0 192 </tr>
michael@0 193 <tr class="w7">
michael@0 194 <th>700</th>
michael@0 195 <td class="clili"><span>東京特許許可局</span></td>
michael@0 196 <td class="cli"><span>東京特許許可局</span></td>
michael@0 197 <td class="cnor"><span>東京特許許可局</span></td>
michael@0 198 <td class="cbo"><span>東京特許許可局</span></td>
michael@0 199 <td class="cbobo"><span>東京特許許可局</span></td>
michael@0 200 </tr>
michael@0 201 <tr class="w8">
michael@0 202 <th>800</th>
michael@0 203 <td class="clili"><span>東京特許許可局</span></td>
michael@0 204 <td class="cli"><span>東京特許許可局</span></td>
michael@0 205 <td class="cnor"><span>東京特許許可局</span></td>
michael@0 206 <td class="cbo"><span>東京特許許可局</span></td>
michael@0 207 <td class="cbobo"><span>東京特許許可局</span></td>
michael@0 208 </tr>
michael@0 209 <tr class="w9">
michael@0 210 <th>900</th>
michael@0 211 <td class="clili"><span>東京特許許可局</span></td>
michael@0 212 <td class="cli"><span>東京特許許可局</span></td>
michael@0 213 <td class="cnor"><span>東京特許許可局</span></td>
michael@0 214 <td class="cbo"><span>東京特許許可局</span></td>
michael@0 215 <td class="cbobo"><span>東京特許許可局</span></td>
michael@0 216 </tr>
michael@0 217 </table>
michael@0 218
michael@0 219 <p>tokyotokkyokyokakyoku</p>
michael@0 220
michael@0 221 </body>
michael@0 222 </html>

mercurial