summaryrefslogtreecommitdiffstats
path: root/layout/reftests/mathml/maction-dynamic-1.html
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-28 14:29:10 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-28 14:29:10 +0000
commit2aa4a82499d4becd2284cdb482213d541b8804dd (patch)
treeb80bf8bf13c3766139fbacc530efd0dd9d54394c /layout/reftests/mathml/maction-dynamic-1.html
parentInitial commit. (diff)
downloadfirefox-upstream.tar.xz
firefox-upstream.zip
Adding upstream version 86.0.1.upstream/86.0.1upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'layout/reftests/mathml/maction-dynamic-1.html')
-rw-r--r--layout/reftests/mathml/maction-dynamic-1.html107
1 files changed, 107 insertions, 0 deletions
diff --git a/layout/reftests/mathml/maction-dynamic-1.html b/layout/reftests/mathml/maction-dynamic-1.html
new file mode 100644
index 0000000000..9f848a6f43
--- /dev/null
+++ b/layout/reftests/mathml/maction-dynamic-1.html
@@ -0,0 +1,107 @@
+<!DOCTYPE html>
+<html xmlns="http://www.w3.org/1999/xhtml" class="reftest-wait">
+<head>
+<title>dynamic maction 1</title>
+</head>
+
+<body>
+
+<p>
+<math>
+ <maction id="m1" actiontype="toggle">
+ <mtext>__1__</mtext>
+ <mtext>__2__</mtext>
+ </maction>
+</math>
+</p>
+
+<p>
+<math>
+ <maction id="m2" actiontype="toggle" selection="2">
+ <mtext>__1__</mtext>
+ <mtext>__2__</mtext>
+ </maction>
+</math>
+</p>
+
+<p>
+<math>
+ <maction id="m3" actiontype="toggle" selection="2">
+ <mtext>__1__</mtext>
+ <mtext>__2__</mtext>
+ </maction>
+</math>
+</p>
+
+<p>
+<math>
+ <maction id="m4" actiontype="toggle">
+ <mn>1</mn>
+ <mn>2</mn>
+ </maction>
+</math>
+</p>
+
+<p>
+<math>
+ <maction id="m5" actiontype="toggle">
+ <mtext id="m51">__1__</mtext>
+ <mtext id="m52">__2__</mtext>
+ <mtext id="m53">__3__</mtext>
+ </maction>
+</math>
+</p>
+
+<p>
+<math>
+ <maction id="m6" actiontype="toggle" selection="3">
+ <mtext>__1__</mtext>
+ <mtext>__2__</mtext>
+ </maction>
+</math>
+</p>
+
+<p>
+<math>
+ <maction id="m7" actiontype="toggle">
+ <mtext id="m71">__1__</mtext>
+ <mtext id="m72">__2__</mtext>
+ </maction>
+</math>
+</p>
+
+<p>
+<math>
+ <maction id="m8" actiontype="toggle">
+ <mtext id="m81">__1__</mtext>
+ <mtext id="m82">__2__</mtext>
+ </maction>
+</math>
+</p>
+
+<script>
+function doTest() {
+ document.getElementById("m1").setAttribute("selection", "2");
+ document.getElementById("m2").removeAttribute("selection");
+ document.getElementById("m3").setAttribute("actiontype", "statusline");
+ document.getElementById("m4").setAttribute("actiontype", "statusline");
+
+ var child51 = document.getElementById("m51");
+ document.getElementById("m5").removeChild(child51);
+
+ var child53 = document.getElementById("m53");
+ document.getElementById("m6").appendChild(child53.cloneNode(true));
+
+ var child71 = document.getElementById("m71");
+ document.getElementById("m7").insertBefore(child53.cloneNode(true), child71);
+
+ var child81 = document.getElementById("m81");
+ document.getElementById("m8").replaceChild(child53.cloneNode(true), child81);
+
+ document.documentElement.removeAttribute('class');
+}
+window.addEventListener("MozReftestInvalidate", doTest);
+</script>
+
+</body>
+</html>