layout/reftests/font-matching/weightmapping-458.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: test;
michael@0 34 src: url(../fonts/mplus/mplus-1p-heavy.ttf);
michael@0 35 font-weight: 800;
michael@0 36 }
michael@0 37
michael@0 38 @font-face {
michael@0 39 font-family: test400;
michael@0 40 src: url(../fonts/mplus/mplus-1p-regular.ttf);
michael@0 41 }
michael@0 42
michael@0 43 @font-face {
michael@0 44 font-family: test500;
michael@0 45 src: url(../fonts/mplus/mplus-1p-medium.ttf);
michael@0 46 }
michael@0 47
michael@0 48 @font-face {
michael@0 49 font-family: test800;
michael@0 50 src: url(../fonts/mplus/mplus-1p-heavy.ttf);
michael@0 51 }
michael@0 52
michael@0 53 table {
michael@0 54 border-collapse: collapse;
michael@0 55 font-family: test;
michael@0 56 font-size: 20px;
michael@0 57 }
michael@0 58
michael@0 59 td {
michael@0 60 padding: 0; margin: 0;
michael@0 61 }
michael@0 62
michael@0 63 th {
michael@0 64 font-weight: inherit;
michael@0 65 }
michael@0 66
michael@0 67 .red { color: red; }
michael@0 68
michael@0 69 th.cnor { font-weight: inherit; }
michael@0 70 th.cbo { font-weight: bolder; }
michael@0 71 th.cbobo, th.cbobo span { font-weight: bolder; }
michael@0 72 th.cli { font-weight: lighter; }
michael@0 73 th.clili, th.clili span { font-weight: lighter; }
michael@0 74
michael@0 75 td.cnor { font-weight: inherit; }
michael@0 76 td.cbo { font-weight: bolder; }
michael@0 77 td.cbobo, td.cbobo span { font-weight: bolder; }
michael@0 78 td.cli { font-weight: lighter; }
michael@0 79 td.clili, td.clili span { font-weight: lighter; }
michael@0 80
michael@0 81 thead { font-weight: 400; font-size: 75%; }
michael@0 82
michael@0 83 .w1 { font-weight: 100; }
michael@0 84 .w2 { font-weight: 200; }
michael@0 85 .w3 { font-weight: 300; }
michael@0 86 .w4 { font-weight: 400; }
michael@0 87 .w5 { font-weight: 500; }
michael@0 88 .w6 { font-weight: 600; }
michael@0 89 .w7 { font-weight: 700; }
michael@0 90 .w8 { font-weight: 800; }
michael@0 91 .w9 { font-weight: 900; }
michael@0 92
michael@0 93 </style>
michael@0 94 </head>
michael@0 95 <body>
michael@0 96
michael@0 97 <h3>Font family with 400, 500, 800 weights</h3>
michael@0 98
michael@0 99 <table>
michael@0 100 <thead>
michael@0 101 <th></th>
michael@0 102 <th class="clili"><span>lighter lighter</span></th>
michael@0 103 <th class="cli"><span>lighter</span></th>
michael@0 104 <th class="cnor"><span>normal</span></th>
michael@0 105 <th class="cbo"><span>bolder</span></th>
michael@0 106 <th class="cbobo"><span>bolder bolder</span></th>
michael@0 107 </thead>
michael@0 108 <tr class="w1">
michael@0 109 <th>100</th>
michael@0 110 <td class="clili"><span>東京特許許可局</span></td>
michael@0 111 <td class="cli"><span>東京特許許可局</span></td>
michael@0 112 <td class="cnor"><span>東京特許許可局</span></td>
michael@0 113 <td class="cbo"><span>東京特許許可局</span></td>
michael@0 114 <td class="cbobo"><span>東京特許許可局</span></td>
michael@0 115 </tr>
michael@0 116 <tr class="w2">
michael@0 117 <th>200</th>
michael@0 118 <td class="clili"><span>東京特許許可局</span></td>
michael@0 119 <td class="cli"><span>東京特許許可局</span></td>
michael@0 120 <td class="cnor"><span>東京特許許可局</span></td>
michael@0 121 <td class="cbo"><span>東京特許許可局</span></td>
michael@0 122 <td class="cbobo"><span>東京特許許可局</span></td>
michael@0 123 </tr>
michael@0 124 <tr class="w3">
michael@0 125 <th>300</th>
michael@0 126 <td class="clili"><span>東京特許許可局</span></td>
michael@0 127 <td class="cli"><span>東京特許許可局</span></td>
michael@0 128 <td class="cnor"><span>東京特許許可局</span></td>
michael@0 129 <td class="cbo"><span>東京特許許可局</span></td>
michael@0 130 <td class="cbobo"><span>東京特許許可局</span></td>
michael@0 131 </tr>
michael@0 132 <tr class="w4">
michael@0 133 <th class="red">400</th>
michael@0 134 <td class="clili"><span>東京特許許可局</span></td>
michael@0 135 <td class="cli"><span>東京特許許可局</span></td>
michael@0 136 <td class="cnor"><span>東京特許許可局</span></td>
michael@0 137 <td class="cbo"><span>東京特許許可局</span></td>
michael@0 138 <td class="cbobo"><span>東京特許許可局</span></td>
michael@0 139 </tr>
michael@0 140 <tr class="w5">
michael@0 141 <th class="red">500</th>
michael@0 142 <td class="clili"><span>東京特許許可局</span></td>
michael@0 143 <td class="cli"><span>東京特許許可局</span></td>
michael@0 144 <td class="cnor"><span>東京特許許可局</span></td>
michael@0 145 <td class="cbo"><span>東京特許許可局</span></td>
michael@0 146 <td class="cbobo"><span>東京特許許可局</span></td>
michael@0 147 </tr>
michael@0 148 <tr class="w6">
michael@0 149 <th>600</th>
michael@0 150 <td class="clili"><span>東京特許許可局</span></td>
michael@0 151 <td class="cli"><span>東京特許許可局</span></td>
michael@0 152 <td class="cnor"><span>東京特許許可局</span></td>
michael@0 153 <td class="cbo"><span>東京特許許可局</span></td>
michael@0 154 <td class="cbobo"><span>東京特許許可局</span></td>
michael@0 155 </tr>
michael@0 156 <tr class="w7">
michael@0 157 <th>700</th>
michael@0 158 <td class="clili"><span>東京特許許可局</span></td>
michael@0 159 <td class="cli"><span>東京特許許可局</span></td>
michael@0 160 <td class="cnor"><span>東京特許許可局</span></td>
michael@0 161 <td class="cbo"><span>東京特許許可局</span></td>
michael@0 162 <td class="cbobo"><span>東京特許許可局</span></td>
michael@0 163 </tr>
michael@0 164 <tr class="w8">
michael@0 165 <th class="red">800</th>
michael@0 166 <td class="clili"><span>東京特許許可局</span></td>
michael@0 167 <td class="cli"><span>東京特許許可局</span></td>
michael@0 168 <td class="cnor"><span>東京特許許可局</span></td>
michael@0 169 <td class="cbo"><span>東京特許許可局</span></td>
michael@0 170 <td class="cbobo"><span>東京特許許可局</span></td>
michael@0 171 </tr>
michael@0 172 <tr class="w9">
michael@0 173 <th>900</th>
michael@0 174 <td class="clili"><span>東京特許許可局</span></td>
michael@0 175 <td class="cli"><span>東京特許許可局</span></td>
michael@0 176 <td class="cnor"><span>東京特許許可局</span></td>
michael@0 177 <td class="cbo"><span>東京特許許可局</span></td>
michael@0 178 <td class="cbobo"><span>東京特許許可局</span></td>
michael@0 179 </tr>
michael@0 180 </table>
michael@0 181
michael@0 182 <p>tokyotokkyokyokakyoku</p>
michael@0 183
michael@0 184 </body>
michael@0 185 </html>

mercurial