Fri, 16 Jan 2015 18:13:44 +0100
Integrate suggestion from review to improve consistency with existing code.
michael@0 | 1 | <!doctype html> |
michael@0 | 2 | <head> |
michael@0 | 3 | |
michael@0 | 4 | <!-- This font only has glyphs defined for 'A', 'B', 'C' and 'D', and is |
michael@0 | 5 | designed purely for testing ssty functionality |
michael@0 | 6 | The glyphs for 'A' and 'D' are identical, the difference between them is |
michael@0 | 7 | that 'A' supports the ssty font feature. |
michael@0 | 8 | 'A' with ssty = 1 maps to 'B' |
michael@0 | 9 | 'A' with ssty = 2 maps to 'C'--> |
michael@0 | 10 | <style type="text/css" media="screen, print"> |
michael@0 | 11 | @font-face { |
michael@0 | 12 | font-family: "sstyfont"; |
michael@0 | 13 | src: url("ssty.woff"); |
michael@0 | 14 | } |
michael@0 | 15 | </style> |
michael@0 | 16 | </head> |
michael@0 | 17 | <body> |
michael@0 | 18 | |
michael@0 | 19 | <!-- Test whether the ssty font feature setting is used appropriately for |
michael@0 | 20 | supscripts et al. |
michael@0 | 21 | Assumes NS_MATHML_DEFAULT_SCRIPT_SIZE_MULTIPLIER is 0.71--> |
michael@0 | 22 | |
michael@0 | 23 | <math> |
michael@0 | 24 | <mstyle style="font-family: 'sstyfont';"> |
michael@0 | 25 | <msup> |
michael@0 | 26 | <mo>D</mo> |
michael@0 | 27 | <msup> |
michael@0 | 28 | <mo>B</mo> |
michael@0 | 29 | <msup> |
michael@0 | 30 | <mo>C</mo> |
michael@0 | 31 | <mo>C</mo> <!-- ssty value capped at 2 --> |
michael@0 | 32 | </msup> |
michael@0 | 33 | </msup> |
michael@0 | 34 | </msup> |
michael@0 | 35 | |
michael@0 | 36 | <msub> |
michael@0 | 37 | <mo>D</mo> |
michael@0 | 38 | <msub> |
michael@0 | 39 | <mo>B</mo> |
michael@0 | 40 | <msub> |
michael@0 | 41 | <mo>C</mo> |
michael@0 | 42 | <mo>C</mo> |
michael@0 | 43 | </msub> |
michael@0 | 44 | </msub> |
michael@0 | 45 | </msub> |
michael@0 | 46 | |
michael@0 | 47 | <msubsup> |
michael@0 | 48 | <mo>D</mo> |
michael@0 | 49 | <msubsup> |
michael@0 | 50 | <mo>B</mo> |
michael@0 | 51 | <msubsup> |
michael@0 | 52 | <mo>C</mo> |
michael@0 | 53 | <mo>C</mo> |
michael@0 | 54 | <mo>C</mo> |
michael@0 | 55 | </msubsup> |
michael@0 | 56 | <msubsup> |
michael@0 | 57 | <mo>C</mo> |
michael@0 | 58 | <mo>C</mo> |
michael@0 | 59 | <mo>C</mo> |
michael@0 | 60 | </msubsup> |
michael@0 | 61 | </msubsup> |
michael@0 | 62 | <msubsup> |
michael@0 | 63 | <mo>B</mo> |
michael@0 | 64 | <msubsup> |
michael@0 | 65 | <mo>C</mo> |
michael@0 | 66 | <mo>C</mo> |
michael@0 | 67 | <mo>C</mo> |
michael@0 | 68 | </msubsup> |
michael@0 | 69 | <msubsup> |
michael@0 | 70 | <mo>C</mo> |
michael@0 | 71 | <mo>C</mo> |
michael@0 | 72 | <mo>C</mo> |
michael@0 | 73 | </msubsup> |
michael@0 | 74 | </msubsup> |
michael@0 | 75 | </msubsup> |
michael@0 | 76 | |
michael@0 | 77 | <mmultiscripts> |
michael@0 | 78 | <mo>D</mo> |
michael@0 | 79 | <mmultiscripts> |
michael@0 | 80 | <mo>B</mo> |
michael@0 | 81 | <mmultiscripts> |
michael@0 | 82 | <mo>C</mo> |
michael@0 | 83 | <mo>C</mo> |
michael@0 | 84 | <mo>C</mo> |
michael@0 | 85 | </mmultiscripts> |
michael@0 | 86 | <mmultiscripts> |
michael@0 | 87 | <mo>C</mo> |
michael@0 | 88 | <mo>C</mo> |
michael@0 | 89 | <mo>C</mo> |
michael@0 | 90 | </mmultiscripts> |
michael@0 | 91 | </mmultiscripts> |
michael@0 | 92 | <mmultiscripts> |
michael@0 | 93 | <mo>B</mo> |
michael@0 | 94 | <mmultiscripts> |
michael@0 | 95 | <mo>C</mo> |
michael@0 | 96 | <mo>C</mo> |
michael@0 | 97 | <mo>C</mo> |
michael@0 | 98 | </mmultiscripts> |
michael@0 | 99 | <mmultiscripts> |
michael@0 | 100 | <mo>C</mo> |
michael@0 | 101 | <mo>C</mo> |
michael@0 | 102 | <mo>C</mo> |
michael@0 | 103 | </mmultiscripts> |
michael@0 | 104 | </mmultiscripts> |
michael@0 | 105 | </mmultiscripts> |
michael@0 | 106 | </mstyle> |
michael@0 | 107 | </math> |
michael@0 | 108 | |
michael@0 | 109 | <p> |
michael@0 | 110 | |
michael@0 | 111 | <!-- Automatically set ssty ignores user set scriptlevel --> |
michael@0 | 112 | <math> |
michael@0 | 113 | <mstyle style="font-family: 'sstyfont';" scriptlevel="-3"> |
michael@0 | 114 | <msup> |
michael@0 | 115 | <mo>D</mo> |
michael@0 | 116 | <msup> |
michael@0 | 117 | <mo>B</mo> |
michael@0 | 118 | <msup> |
michael@0 | 119 | <mo>C</mo> |
michael@0 | 120 | <mo>C</mo> <!-- ssty value capped at 2 --> |
michael@0 | 121 | </msup> |
michael@0 | 122 | </msup> |
michael@0 | 123 | </msup> |
michael@0 | 124 | |
michael@0 | 125 | <msub> |
michael@0 | 126 | <mo>D</mo> |
michael@0 | 127 | <msub> |
michael@0 | 128 | <mo>B</mo> |
michael@0 | 129 | <msub> |
michael@0 | 130 | <mo>C</mo> |
michael@0 | 131 | <mo>C</mo> |
michael@0 | 132 | </msub> |
michael@0 | 133 | </msub> |
michael@0 | 134 | </msub> |
michael@0 | 135 | |
michael@0 | 136 | <msubsup> |
michael@0 | 137 | <mo>D</mo> |
michael@0 | 138 | <msubsup> |
michael@0 | 139 | <mo>B</mo> |
michael@0 | 140 | <msubsup> |
michael@0 | 141 | <mo>C</mo> |
michael@0 | 142 | <mo>C</mo> |
michael@0 | 143 | <mo>C</mo> |
michael@0 | 144 | </msubsup> |
michael@0 | 145 | <msubsup> |
michael@0 | 146 | <mo>C</mo> |
michael@0 | 147 | <mo>C</mo> |
michael@0 | 148 | <mo>C</mo> |
michael@0 | 149 | </msubsup> |
michael@0 | 150 | </msubsup> |
michael@0 | 151 | <msubsup> |
michael@0 | 152 | <mo>B</mo> |
michael@0 | 153 | <msubsup> |
michael@0 | 154 | <mo>C</mo> |
michael@0 | 155 | <mo>C</mo> |
michael@0 | 156 | <mo>C</mo> |
michael@0 | 157 | </msubsup> |
michael@0 | 158 | <msubsup> |
michael@0 | 159 | <mo>C</mo> |
michael@0 | 160 | <mo>C</mo> |
michael@0 | 161 | <mo>C</mo> |
michael@0 | 162 | </msubsup> |
michael@0 | 163 | </msubsup> |
michael@0 | 164 | </msubsup> |
michael@0 | 165 | |
michael@0 | 166 | <mmultiscripts> |
michael@0 | 167 | <mo>D</mo> |
michael@0 | 168 | <mmultiscripts> |
michael@0 | 169 | <mo>B</mo> |
michael@0 | 170 | <mmultiscripts> |
michael@0 | 171 | <mo>C</mo> |
michael@0 | 172 | <mo>C</mo> |
michael@0 | 173 | <mo>C</mo> |
michael@0 | 174 | </mmultiscripts> |
michael@0 | 175 | <mmultiscripts> |
michael@0 | 176 | <mo>C</mo> |
michael@0 | 177 | <mo>C</mo> |
michael@0 | 178 | <mo>C</mo> |
michael@0 | 179 | </mmultiscripts> |
michael@0 | 180 | </mmultiscripts> |
michael@0 | 181 | <mmultiscripts> |
michael@0 | 182 | <mo>B</mo> |
michael@0 | 183 | <mmultiscripts> |
michael@0 | 184 | <mo>C</mo> |
michael@0 | 185 | <mo>C</mo> |
michael@0 | 186 | <mo>C</mo> |
michael@0 | 187 | </mmultiscripts> |
michael@0 | 188 | <mmultiscripts> |
michael@0 | 189 | <mo>C</mo> |
michael@0 | 190 | <mo>C</mo> |
michael@0 | 191 | <mo>C</mo> |
michael@0 | 192 | </mmultiscripts> |
michael@0 | 193 | </mmultiscripts> |
michael@0 | 194 | </mmultiscripts> |
michael@0 | 195 | </mstyle> |
michael@0 | 196 | </math> |
michael@0 | 197 | |
michael@0 | 198 | <p> |
michael@0 | 199 | |
michael@0 | 200 | <!-- Automatically set ssty ignores user set scriptlevel --> |
michael@0 | 201 | <math> |
michael@0 | 202 | <mstyle style="font-family: 'sstyfont';" scriptlevel="1"> |
michael@0 | 203 | <msup> |
michael@0 | 204 | <mo>D</mo> |
michael@0 | 205 | <msup> |
michael@0 | 206 | <mo>B</mo> |
michael@0 | 207 | <msup> |
michael@0 | 208 | <mo>C</mo> |
michael@0 | 209 | <mo>C</mo> <!-- ssty value capped at 2 --> |
michael@0 | 210 | </msup> |
michael@0 | 211 | </msup> |
michael@0 | 212 | </msup> |
michael@0 | 213 | |
michael@0 | 214 | <msub> |
michael@0 | 215 | <mo>D</mo> |
michael@0 | 216 | <msub> |
michael@0 | 217 | <mo>B</mo> |
michael@0 | 218 | <msub> |
michael@0 | 219 | <mo>C</mo> |
michael@0 | 220 | <mo>C</mo> |
michael@0 | 221 | </msub> |
michael@0 | 222 | </msub> |
michael@0 | 223 | </msub> |
michael@0 | 224 | |
michael@0 | 225 | <msubsup> |
michael@0 | 226 | <mo>D</mo> |
michael@0 | 227 | <msubsup> |
michael@0 | 228 | <mo>B</mo> |
michael@0 | 229 | <msubsup> |
michael@0 | 230 | <mo>C</mo> |
michael@0 | 231 | <mo>C</mo> |
michael@0 | 232 | <mo>C</mo> |
michael@0 | 233 | </msubsup> |
michael@0 | 234 | <msubsup> |
michael@0 | 235 | <mo>C</mo> |
michael@0 | 236 | <mo>C</mo> |
michael@0 | 237 | <mo>C</mo> |
michael@0 | 238 | </msubsup> |
michael@0 | 239 | </msubsup> |
michael@0 | 240 | <msubsup> |
michael@0 | 241 | <mo>B</mo> |
michael@0 | 242 | <msubsup> |
michael@0 | 243 | <mo>C</mo> |
michael@0 | 244 | <mo>C</mo> |
michael@0 | 245 | <mo>C</mo> |
michael@0 | 246 | </msubsup> |
michael@0 | 247 | <msubsup> |
michael@0 | 248 | <mo>C</mo> |
michael@0 | 249 | <mo>C</mo> |
michael@0 | 250 | <mo>C</mo> |
michael@0 | 251 | </msubsup> |
michael@0 | 252 | </msubsup> |
michael@0 | 253 | </msubsup> |
michael@0 | 254 | |
michael@0 | 255 | <mmultiscripts> |
michael@0 | 256 | <mo>D</mo> |
michael@0 | 257 | <mmultiscripts> |
michael@0 | 258 | <mo>B</mo> |
michael@0 | 259 | <mmultiscripts> |
michael@0 | 260 | <mo>C</mo> |
michael@0 | 261 | <mo>C</mo> |
michael@0 | 262 | <mo>C</mo> |
michael@0 | 263 | </mmultiscripts> |
michael@0 | 264 | <mmultiscripts> |
michael@0 | 265 | <mo>C</mo> |
michael@0 | 266 | <mo>C</mo> |
michael@0 | 267 | <mo>C</mo> |
michael@0 | 268 | </mmultiscripts> |
michael@0 | 269 | </mmultiscripts> |
michael@0 | 270 | <mmultiscripts> |
michael@0 | 271 | <mo>B</mo> |
michael@0 | 272 | <mmultiscripts> |
michael@0 | 273 | <mo>C</mo> |
michael@0 | 274 | <mo>C</mo> |
michael@0 | 275 | <mo>C</mo> |
michael@0 | 276 | </mmultiscripts> |
michael@0 | 277 | <mmultiscripts> |
michael@0 | 278 | <mo>C</mo> |
michael@0 | 279 | <mo>C</mo> |
michael@0 | 280 | <mo>C</mo> |
michael@0 | 281 | </mmultiscripts> |
michael@0 | 282 | </mmultiscripts> |
michael@0 | 283 | </mmultiscripts> |
michael@0 | 284 | </mstyle> |
michael@0 | 285 | </math> |
michael@0 | 286 | |
michael@0 | 287 | <p> |
michael@0 | 288 | |
michael@0 | 289 | <!-- User set ssty font feature setting overrides automatically set ssty, but |
michael@0 | 290 | only for affected elements --> |
michael@0 | 291 | <math> |
michael@0 | 292 | <mstyle style="font-family: 'sstyfont';"> |
michael@0 | 293 | <msup> |
michael@0 | 294 | <mo>D</mo> |
michael@0 | 295 | <msup> |
michael@0 | 296 | <mo>D</mo> |
michael@0 | 297 | <mo>C</mo> |
michael@0 | 298 | </msup> |
michael@0 | 299 | </msup> |
michael@0 | 300 | |
michael@0 | 301 | <msub> |
michael@0 | 302 | <mo>D</mo> |
michael@0 | 303 | <msub> |
michael@0 | 304 | <mo>D</mo> |
michael@0 | 305 | <mo>C</mo> |
michael@0 | 306 | </msub> |
michael@0 | 307 | </msub> |
michael@0 | 308 | |
michael@0 | 309 | <msubsup> |
michael@0 | 310 | <mo>D</mo> |
michael@0 | 311 | <msubsup> |
michael@0 | 312 | <mo>D</mo> |
michael@0 | 313 | <mo>C</mo> |
michael@0 | 314 | <mo>C</mo> |
michael@0 | 315 | </msubsup> |
michael@0 | 316 | <msubsup> |
michael@0 | 317 | <mo>D</mo> |
michael@0 | 318 | <mo>C</mo> |
michael@0 | 319 | <mo>C</mo> |
michael@0 | 320 | </msubsup> |
michael@0 | 321 | </msubsup> |
michael@0 | 322 | |
michael@0 | 323 | <mmultiscripts> |
michael@0 | 324 | <mo>D</mo> |
michael@0 | 325 | <mmultiscripts> |
michael@0 | 326 | <mo>D</mo> |
michael@0 | 327 | <mo>C</mo> |
michael@0 | 328 | <mo>C</mo> |
michael@0 | 329 | </mmultiscripts> |
michael@0 | 330 | <mmultiscripts> |
michael@0 | 331 | <mo>D</mo> |
michael@0 | 332 | <mo>C</mo> |
michael@0 | 333 | <mo>C</mo> |
michael@0 | 334 | </mmultiscripts> |
michael@0 | 335 | </mmultiscripts> |
michael@0 | 336 | </mstyle> |
michael@0 | 337 | </math> |