summaryrefslogtreecommitdiffstats
path: root/layout/reftests/mathml/maction-dynamic-embellished-op.html
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--layout/reftests/mathml/maction-dynamic-embellished-op.html67
1 files changed, 67 insertions, 0 deletions
diff --git a/layout/reftests/mathml/maction-dynamic-embellished-op.html b/layout/reftests/mathml/maction-dynamic-embellished-op.html
new file mode 100644
index 0000000000..7b66469918
--- /dev/null
+++ b/layout/reftests/mathml/maction-dynamic-embellished-op.html
@@ -0,0 +1,67 @@
+<!DOCTYPE html>
+<html class="reftest-wait">
+
+<head>
+<title>dynamic maction and embellished op</title>
+<style>
+ @font-face
+ {
+ font-family: Ahem;
+ src: url(../fonts/Ahem.ttf);
+ }
+ p, math {
+ font: 25px Ahem;
+ }
+</style>
+</head>
+
+<body>
+
+ <p>É<math><maction actiontype="toggle" id="m1"><mn>X</mn><mo>p</mo></maction></math>É</p>
+ <p>É<math><maction actiontype="toggle" id="m2"><mo>p</mo><mn>X</mn></maction></math>É</p>
+
+ <p>É<math><maction actiontype="toggle" id="m3"><mn>X</mn><mo>p</mo></maction></math>É</p>
+ <p>É<math><maction actiontype="toggle" id="m3bis"><mo>p</mo></maction></math>É</p>
+
+ <p>{<math><maction actiontype="toggle" id="m4"><mo>p</mo><mn>X</mn></maction></math>}</p>
+ <p>{<math><maction actiontype="toggle" id="m4bis"><mn>X</mn></maction></math>}</p>
+
+
+ <p>[<math>
+ <mstyle id="m5"><maction actiontype="toggle"><mn>X</mn><mo>p</mo></maction></mstyle>
+ </math>]</p>
+ <p>[<math>
+ <mstyle id="m6"><maction actiontype="toggle"><mo>p</mo><mn>X</mn></maction></mstyle>
+ </math>]</p>
+
+ <p>(<math id="m7"><maction actiontype="toggle"><mn>X</mn><mo>p</mo></maction></math>)</p>
+ <p>(<math id="m8"><maction actiontype="toggle"><mo>p</mo><mn>X</mn></maction></math>)</p>
+
+<script>
+function doTest()
+{
+ document.getElementById("m1").setAttribute("selection", "2");
+ document.getElementById("m2").setAttribute("selection", "2");
+
+ var m3 = document.getElementById("m3");
+ var m3bis = document.getElementById("m3bis");
+ m3bis.insertBefore(m3.removeChild(m3.firstChild), m3bis.firstChild);
+
+ var m4 = document.getElementById("m4");
+ var m4bis = document.getElementById("m4bis");
+ m4bis.insertBefore(m4.removeChild(m4.firstChild), m4bis.firstChild);
+
+ document.getElementById("m5").setAttribute("selection", "2");
+ document.getElementById("m6").setAttribute("selection", "2");
+
+ document.getElementById("m7").setAttribute("selection", "2");
+ document.getElementById("m8").setAttribute("selection", "2");
+
+ document.documentElement.removeAttribute("class");
+}
+
+window.addEventListener("MozReftestInvalidate", doTest);
+</script>
+
+</body>
+</html>