layout/reftests/mathml/mathscript-1.html

branch
TOR_BUG_9701
changeset 9
a63d609f5ebe
equal deleted inserted replaced
-1:000000000000 0:a835f0c68a7f
1 <!doctype html>
2 <head>
3 <style type="text/css" media="screen, print">
4 @font-face {
5 font-family: "mathssty";
6 src: url("mathssty.woff");
7 }
8 </style>
9 </head>
10 <body>
11
12 <!-- Demonstrate that it has no effect outside MathML -->
13 <div style="font-family: 'mathssty';
14 -moz-font-feature-settings: 'ssty' 1">A</div>
15 <div style="font-family: 'mathssty';
16 -moz-font-feature-settings: 'ssty' 2">A</div>
17
18 <!-- Demonstrate that it works within MathML -->
19 <math>
20 <mstyle style="font-family: 'mathssty';">
21 <mrow>
22 <mo style="-moz-font-feature-settings: 'ssty' 0">A</mo>
23 <mo style="-moz-font-feature-settings: 'ssty' 1">A</mo>
24 <mo style="-moz-font-feature-settings: 'ssty' 2">A</mo>
25 </mrow>
26 </mstyle>
27 </math>
28 <p>
29 <!-- verify it works for the other elements except mtext -->
30 <math>
31 <mstyle style="font-family: 'mathssty'; -moz-font-feature-settings: 'ssty' 2">
32 <mi mathvariant="normal">A</mi>
33 <mn>A</mn>
34 <mtext>A</mtext>
35 </mstyle>
36 </math>
37 </body>

mercurial