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

Tue, 06 Jan 2015 21:39:09 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Tue, 06 Jan 2015 21:39:09 +0100
branch
TOR_BUG_9701
changeset 8
97036ab72558
permissions
-rw-r--r--

Conditionally force memory storage according to privacy.thirdparty.isolate;
This solves Tor bug #9701, complying with disk avoidance documented in
https://www.torproject.org/projects/torbrowser/design/#disk-avoidance.

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-light.ttf);
michael@0 43 font-weight: 200;
michael@0 44 }
michael@0 45
michael@0 46 @font-face {
michael@0 47 font-family: test;
michael@0 48 src: url(../fonts/mplus/mplus-1p-medium.ttf);
michael@0 49 font-weight: 500;
michael@0 50 }
michael@0 51
michael@0 52 @font-face {
michael@0 53 font-family: test;
michael@0 54 src: url(../fonts/mplus/mplus-1p-thin.ttf);
michael@0 55 font-weight: 100;
michael@0 56 font-stretch: condensed;
michael@0 57 }
michael@0 58
michael@0 59 @font-face {
michael@0 60 font-family: test;
michael@0 61 src: url(../fonts/mplus/mplus-1p-black.ttf);
michael@0 62 font-weight: 900;
michael@0 63 font-stretch: condensed;
michael@0 64 }
michael@0 65
michael@0 66 @font-face {
michael@0 67 font-family: test100;
michael@0 68 src: url(../fonts/mplus/mplus-1p-thin.ttf);
michael@0 69 font-weight: 100;
michael@0 70 }
michael@0 71
michael@0 72 @font-face {
michael@0 73 font-family: test200;
michael@0 74 src: url(../fonts/mplus/mplus-1p-light.ttf);
michael@0 75 font-weight: 200;
michael@0 76 }
michael@0 77
michael@0 78 @font-face {
michael@0 79 font-family: test500;
michael@0 80 src: url(../fonts/mplus/mplus-1p-medium.ttf);
michael@0 81 font-weight: 500;
michael@0 82 }
michael@0 83
michael@0 84 @font-face {
michael@0 85 font-family: test900;
michael@0 86 src: url(../fonts/mplus/mplus-1p-black.ttf);
michael@0 87 font-weight: 900;
michael@0 88 }
michael@0 89
michael@0 90 .w1 { font-weight: 100; }
michael@0 91 .w2 { font-weight: 200; }
michael@0 92 .w3 { font-weight: 300; }
michael@0 93 .w4 { font-weight: 400; }
michael@0 94 .w5 { font-weight: 500; }
michael@0 95 .w6 { font-weight: 600; }
michael@0 96 .w7 { font-weight: 700; }
michael@0 97 .w8 { font-weight: 800; }
michael@0 98 .w9 { font-weight: 900; }
michael@0 99
michael@0 100 .fs1 { font-stretch: ultra-condensed; }
michael@0 101 .fs2 { font-stretch: extra-condensed; }
michael@0 102 .fs3 { font-stretch: condensed; }
michael@0 103 .fs4 { font-stretch: semi-condensed; }
michael@0 104 .fs5 { font-stretch: normal; }
michael@0 105 .fs6 { font-stretch: semi-expanded; }
michael@0 106 .fs7 { font-stretch: expanded; }
michael@0 107 .fs8 { font-stretch: extra-expanded; }
michael@0 108 .fs9 { font-stretch: ultra-expanded; }
michael@0 109
michael@0 110 </style>
michael@0 111 </head>
michael@0 112 <body>
michael@0 113
michael@0 114 <p>Font family with normal width 200, 500 and condensed 100, 900</p>
michael@0 115
michael@0 116 <table>
michael@0 117 <thead>
michael@0 118 <th></th>
michael@0 119 <th>1</th>
michael@0 120 <th>2</th>
michael@0 121 <th class="red">3</th>
michael@0 122 <th>4</th>
michael@0 123 <th class="red">5</th>
michael@0 124 <th>6</th>
michael@0 125 <th>7</th>
michael@0 126 <th>8</th>
michael@0 127 <th>9</th>
michael@0 128 </thead>
michael@0 129 <tr class="w1">
michael@0 130 <th>100</th>
michael@0 131 <td class="fs1"><span>あ</span></td>
michael@0 132 <td class="fs2"><span>あ</span></td>
michael@0 133 <td class="fs3"><span>あ</span></td>
michael@0 134 <td class="fs4"><span>あ</span></td>
michael@0 135 <td class="fs5"><span>あ</span></td>
michael@0 136 <td class="fs6"><span>あ</span></td>
michael@0 137 <td class="fs7"><span>あ</span></td>
michael@0 138 <td class="fs8"><span>あ</span></td>
michael@0 139 <td class="fs9"><span>あ</span></td>
michael@0 140 </tr>
michael@0 141 <tr class="w2">
michael@0 142 <th>200</th>
michael@0 143 <td class="fs1"><span>あ</span></td>
michael@0 144 <td class="fs2"><span>あ</span></td>
michael@0 145 <td class="fs3"><span>あ</span></td>
michael@0 146 <td class="fs4"><span>あ</span></td>
michael@0 147 <td class="fs5"><span>あ</span></td>
michael@0 148 <td class="fs6"><span>あ</span></td>
michael@0 149 <td class="fs7"><span>あ</span></td>
michael@0 150 <td class="fs8"><span>あ</span></td>
michael@0 151 <td class="fs9"><span>あ</span></td>
michael@0 152 </tr>
michael@0 153 <tr class="w3">
michael@0 154 <th>300</th>
michael@0 155 <td class="fs1"><span>あ</span></td>
michael@0 156 <td class="fs2"><span>あ</span></td>
michael@0 157 <td class="fs3"><span>あ</span></td>
michael@0 158 <td class="fs4"><span>あ</span></td>
michael@0 159 <td class="fs5"><span>あ</span></td>
michael@0 160 <td class="fs6"><span>あ</span></td>
michael@0 161 <td class="fs7"><span>あ</span></td>
michael@0 162 <td class="fs8"><span>あ</span></td>
michael@0 163 <td class="fs9"><span>あ</span></td>
michael@0 164 </tr>
michael@0 165 <tr class="w4">
michael@0 166 <th>400</th>
michael@0 167 <td class="fs1"><span>あ</span></td>
michael@0 168 <td class="fs2"><span>あ</span></td>
michael@0 169 <td class="fs3"><span>あ</span></td>
michael@0 170 <td class="fs4"><span>あ</span></td>
michael@0 171 <td class="fs5"><span>あ</span></td>
michael@0 172 <td class="fs6"><span>あ</span></td>
michael@0 173 <td class="fs7"><span>あ</span></td>
michael@0 174 <td class="fs8"><span>あ</span></td>
michael@0 175 <td class="fs9"><span>あ</span></td>
michael@0 176 </tr>
michael@0 177 <tr class="w5">
michael@0 178 <th>500</th>
michael@0 179 <td class="fs1"><span>あ</span></td>
michael@0 180 <td class="fs2"><span>あ</span></td>
michael@0 181 <td class="fs3"><span>あ</span></td>
michael@0 182 <td class="fs4"><span>あ</span></td>
michael@0 183 <td class="fs5"><span>あ</span></td>
michael@0 184 <td class="fs6"><span>あ</span></td>
michael@0 185 <td class="fs7"><span>あ</span></td>
michael@0 186 <td class="fs8"><span>あ</span></td>
michael@0 187 <td class="fs9"><span>あ</span></td>
michael@0 188 </tr>
michael@0 189 <tr class="w6">
michael@0 190 <th>600</th>
michael@0 191 <td class="fs1"><span>あ</span></td>
michael@0 192 <td class="fs2"><span>あ</span></td>
michael@0 193 <td class="fs3"><span>あ</span></td>
michael@0 194 <td class="fs4"><span>あ</span></td>
michael@0 195 <td class="fs5"><span>あ</span></td>
michael@0 196 <td class="fs6"><span>あ</span></td>
michael@0 197 <td class="fs7"><span>あ</span></td>
michael@0 198 <td class="fs8"><span>あ</span></td>
michael@0 199 <td class="fs9"><span>あ</span></td>
michael@0 200 </tr>
michael@0 201 <tr class="w7">
michael@0 202 <th>700</th>
michael@0 203 <td class="fs1"><span>あ</span></td>
michael@0 204 <td class="fs2"><span>あ</span></td>
michael@0 205 <td class="fs3"><span>あ</span></td>
michael@0 206 <td class="fs4"><span>あ</span></td>
michael@0 207 <td class="fs5"><span>あ</span></td>
michael@0 208 <td class="fs6"><span>あ</span></td>
michael@0 209 <td class="fs7"><span>あ</span></td>
michael@0 210 <td class="fs8"><span>あ</span></td>
michael@0 211 <td class="fs9"><span>あ</span></td>
michael@0 212 </tr>
michael@0 213 <tr class="w8">
michael@0 214 <th>800</th>
michael@0 215 <td class="fs1"><span>あ</span></td>
michael@0 216 <td class="fs2"><span>あ</span></td>
michael@0 217 <td class="fs3"><span>あ</span></td>
michael@0 218 <td class="fs4"><span>あ</span></td>
michael@0 219 <td class="fs5"><span>あ</span></td>
michael@0 220 <td class="fs6"><span>あ</span></td>
michael@0 221 <td class="fs7"><span>あ</span></td>
michael@0 222 <td class="fs8"><span>あ</span></td>
michael@0 223 <td class="fs9"><span>あ</span></td>
michael@0 224 </tr>
michael@0 225 <tr class="w9">
michael@0 226 <th>900</th>
michael@0 227 <td class="fs1"><span>あ</span></td>
michael@0 228 <td class="fs2"><span>あ</span></td>
michael@0 229 <td class="fs3"><span>あ</span></td>
michael@0 230 <td class="fs4"><span>あ</span></td>
michael@0 231 <td class="fs5"><span>あ</span></td>
michael@0 232 <td class="fs6"><span>あ</span></td>
michael@0 233 <td class="fs7"><span>あ</span></td>
michael@0 234 <td class="fs8"><span>あ</span></td>
michael@0 235 <td class="fs9"><span>あ</span></td>
michael@0 236 </tr>
michael@0 237 </table>
michael@0 238
michael@0 239 </body>
michael@0 240 </html>

mercurial