layout/reftests/mathml/mathscript-1-ref.html

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/layout/reftests/mathml/mathscript-1-ref.html	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,45 @@
     1.4 +<!doctype html>
     1.5 +<head>
     1.6 +
     1.7 +  <!-- This font only has glyphs defined for 'A', 'B', 'C' and 'D', and is
     1.8 +       designed purely for testing ssty  and OpenType 'math' script
     1.9 +       functionality 
    1.10 +       The glyphs for 'A' and 'D' are identical, the difference between them is
    1.11 +       that 'A' supports the ssty font feature. 
    1.12 +       'A' with ssty = 1 maps to 'B'
    1.13 +       'A' with ssty = 2 maps to 'C'
    1.14 +       The difference between this font and ssty.woff is that the font feature
    1.15 +       is contained within the OpenType 'math' script.  -->
    1.16 +  <style type="text/css" media="screen, print">
    1.17 +    @font-face {
    1.18 +      font-family: "mathssty";
    1.19 +      src: url("mathssty.woff");
    1.20 +    }
    1.21 +  </style>
    1.22 +</head>
    1.23 +<body>
    1.24 +
    1.25 +  <!-- Demonstrate that it has no effect outside MathML -->
    1.26 +  <div style="font-family: 'mathssty';">D</div>
    1.27 +  <div style="font-family: 'mathssty';">D</div>
    1.28 +
    1.29 +  <!-- Demonstrate that it works within MathML -->
    1.30 +  <math>
    1.31 +    <mstyle style="font-family: 'mathssty';">
    1.32 +    <mrow>
    1.33 +      <mo>D</mo>
    1.34 +      <mo>B</mo>
    1.35 +      <mo>C</mo>
    1.36 +    </mrow>
    1.37 +    </mstyle>
    1.38 +  </math>
    1.39 +  <p>
    1.40 +  <!-- verify it works for the other elements except mtext -->
    1.41 +  <math>
    1.42 +    <mstyle style="font-family: 'mathssty';">
    1.43 +      <mi mathvariant="normal">C</mi>
    1.44 +      <mn>C</mn>
    1.45 +      <mtext>D</mtext>
    1.46 +    </mstyle>
    1.47 +  </math>
    1.48 +</body>

mercurial