layout/reftests/mathml/mathvariant-5.html

Thu, 15 Jan 2015 15:55:04 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 15 Jan 2015 15:55:04 +0100
branch
TOR_BUG_9701
changeset 9
a63d609f5ebe
permissions
-rw-r--r--

Back out 97036ab72558 which inappropriately compared turds to third parties.

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

mercurial