diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 01:47:29 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 01:47:29 +0000 |
commit | 0ebf5bdf043a27fd3dfb7f92e0cb63d88954c44d (patch) | |
tree | a31f07c9bcca9d56ce61e9a1ffd30ef350d513aa /layout/reftests/mathml/maction-dynamic-embellished-op.html | |
parent | Initial commit. (diff) | |
download | firefox-esr-0ebf5bdf043a27fd3dfb7f92e0cb63d88954c44d.tar.xz firefox-esr-0ebf5bdf043a27fd3dfb7f92e0cb63d88954c44d.zip |
Adding upstream version 115.8.0esr.upstream/115.8.0esr
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'layout/reftests/mathml/maction-dynamic-embellished-op.html')
-rw-r--r-- | layout/reftests/mathml/maction-dynamic-embellished-op.html | 67 |
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> |