layout/reftests/mathml/mathscript-2.html

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/layout/reftests/mathml/mathscript-2.html	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,39 @@
     1.4 +<!doctype html>
     1.5 +<html class="reftest-wait">
     1.6 +  <head>
     1.7 +    <title>Dynamic OpenType 'math' script tests</title>
     1.8 +    <!-- See mathscript-1-ref.html for an explanation of this font -->
     1.9 +    <style type="text/css" media="screen, print">
    1.10 +    @font-face {
    1.11 +      font-family: "mathssty";
    1.12 +      src: url("mathssty.woff");
    1.13 +    }
    1.14 +  </style>
    1.15 +  </head>
    1.16 +  <body>
    1.17 +
    1.18 +  <!-- Demonstrate that it has no effect outside MathML -->
    1.19 +  <div style="font-family: 'mathssty';
    1.20 +              -moz-font-feature-settings: 'ssty' " id="div0">A</div>
    1.21 +
    1.22 +  <!-- Demonstrate that it works within MathML -->
    1.23 +  <math>
    1.24 +    <mstyle style="font-family: 'mathssty'; -moz-font-feature-settings: 'ssty' 2">
    1.25 +      <mo id="mo0">A</mo>
    1.26 +    </mstyle>
    1.27 +  </math>
    1.28 +
    1.29 +  <script>
    1.30 +    function doTest()
    1.31 +    {
    1.32 +      // Does nothing to non-MathML
    1.33 +      document.getElementById("div0").appendChild(document.createTextNode("A"));
    1.34 +      // Does something to MathML
    1.35 +      document.getElementById("mo0").appendChild(document.createTextNode("A"));
    1.36 +      document.documentElement.removeAttribute("class");
    1.37 +    }
    1.38 +    window.addEventListener("MozReftestInvalidate", doTest, false);
    1.39 +  </script>
    1.40 +
    1.41 +  </body>
    1.42 +</html>

mercurial