layout/reftests/mathml/mathvariant-5.html

Wed, 31 Dec 2014 06:55:50 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:55:50 +0100
changeset 2
7e26c7da4463
permissions
-rw-r--r--

Added tag UPSTREAM_283F7C6 for changeset ca08bd8f51b2

     1 <!doctype html>
     2 <html class="reftest-wait">
     3   <head>
     4     <title>Dynamic mathvariant tests</title>
     5   </head>
     6   <body>
     7     <math>
     8       <mrow>
     9         <mi id="Mi0">A</mi>
    10         <mi id="Mi1">A</mi>
    11         <mi id="Mi2">AA</mi>
    12         <mi id="Mi3" mathvariant="fraktur">A</mi>
    13         <mi id="Mi4" mathvariant="monospace">A</mi>
    14         <mtext id="Mtext0" mathvariant="monospace" fontweight="bold">A</mtext>
    15         <mtext id="Mtext1" mathvariant="monospace" fontstyle="italic">A</mtext>
    16         <mtext id="Mtext2" mathvariant="monospace" fontweight="bold">A</mtext>
    17         <mtext id="Mtext3" mathvariant="monospace" fontstyle="italic">A</mtext>
    18         <mtext id="Mtext4" fontweight="bold">A</mtext>
    19         <mtext id="Mtext5" fontstyle="italic">A</mtext>
    20       </mrow>
    21     </math>
    23     <p>
    25     <math>
    26       <mrow>
    27         <mstyle id="Mstyle0">
    28           <mtext>Hello</mtext>
    29         </mstyle>
    30         <mstyle id="Mstyle1" mathvariant="bold-fraktur">
    31           <mtext>Hello</mtext>
    32         </mstyle>
    33         <mstyle id="Mstyle2" mathvariant="bold">
    34           <mtext>Hello</mtext>
    35         </mstyle>
    36       </mrow>
    37     </math>
    39     <p>
    41     <math id="Math0">
    42       <mtext>Hello</mtext>
    43     </math>
    44     <math id="Math1" mathvariant="fraktur">
    45       <mtext>Hello</mtext>
    46     </math>
    47     <math id="Math2" mathvariant="bold">
    48       <mtext>Hello</mtext>
    49     </math>
    50     <script>
    51       function doTest()
    52       {
    53       document.getElementById("Mi0").setAttribute("mathvariant", "script");
    54       document.getElementById("Mi1").innerHTML = "BB";
    55       document.getElementById("Mi2").innerHTML = "B";
    56       document.getElementById("Mi3").removeAttribute("mathvariant");
    57       document.getElementById("Mi4").setAttribute("mathvariant", "script");
    58       document.getElementById("Mtext0").removeAttribute("mathvariant");
    59       document.getElementById("Mtext1").removeAttribute("mathvariant");
    60       document.getElementById("Mtext2").setAttribute("mathvariant", "script");
    61       document.getElementById("Mtext3").setAttribute("mathvariant", "script");
    62       document.getElementById("Mtext4").setAttribute("mathvariant", "script");
    63       document.getElementById("Mtext5").setAttribute("mathvariant", "script");
    64       document.getElementById("Mstyle0").setAttribute("mathvariant", "fraktur");
    65       document.getElementById("Mstyle1").setAttribute("mathvariant", "monospace");
    66       document.getElementById("Mstyle2").removeAttribute("mathvariant");
    67       document.getElementById("Math0").setAttribute("mathvariant", "fraktur");
    68       document.getElementById("Math1").setAttribute("mathvariant", "monospace");
    69       document.getElementById("Math2").removeAttribute("mathvariant");
    71       document.documentElement.removeAttribute("class");
    72       }
    73       window.addEventListener("MozReftestInvalidate", doTest, false);
    74     </script>
    75   </body>
    76 </html>

mercurial