summaryrefslogtreecommitdiffstats
path: root/layout/reftests/mathml/mo-lspace-rspace-3.html
diff options
context:
space:
mode:
authorMatt A. Tobin <mattatobin@localhost.localdomain>2018-02-02 04:16:08 -0500
committerMatt A. Tobin <mattatobin@localhost.localdomain>2018-02-02 04:16:08 -0500
commit5f8de423f190bbb79a62f804151bc24824fa32d8 (patch)
tree10027f336435511475e392454359edea8e25895d /layout/reftests/mathml/mo-lspace-rspace-3.html
parent49ee0794b5d912db1f95dce6eb52d781dc210db5 (diff)
downloadUXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar
UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.gz
UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.lz
UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.xz
UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.zip
Add m-esr52 at 52.6.0
Diffstat (limited to 'layout/reftests/mathml/mo-lspace-rspace-3.html')
-rw-r--r--layout/reftests/mathml/mo-lspace-rspace-3.html57
1 files changed, 57 insertions, 0 deletions
diff --git a/layout/reftests/mathml/mo-lspace-rspace-3.html b/layout/reftests/mathml/mo-lspace-rspace-3.html
new file mode 100644
index 000000000..8b25d053f
--- /dev/null
+++ b/layout/reftests/mathml/mo-lspace-rspace-3.html
@@ -0,0 +1,57 @@
+<!DOCTYPE html>
+<html class="reftest-wait">
+ <body>
+ <p>
+ <math>
+ <mo id="mo1">%</mo>
+ </math>
+ </p>
+ <p>
+ <math>
+ <mo id="mo2" lspace="3em">%</mo>
+ </math>
+ </p>
+ <p>
+ <math>
+ <mo id="mo3">%</mo>
+ <mo>%</mo>
+ </math>
+ </p>
+ <p>
+ <math>
+ <mo id="mo4" lspace="3em">%</mo>
+ <mo >%</mo>
+ </math>
+ </p>
+ <p>
+ <math id="math1">
+ <mo>%</mo>
+ </math>
+ </p>
+ <p>
+ <math id="math2">
+ <mo>%</mo>
+ <mo id="mo5">%</mo>
+ </math>
+ </p>
+ <script type="text/javascript">
+ function doTest() {
+ // Add and remove lspace
+ document.getElementById("mo1").setAttribute("lspace", "3em");
+ document.getElementById("mo2").removeAttribute("lspace");
+ // and again but with an inferred mrow
+ document.getElementById("mo3").setAttribute("lspace", "3em");
+ document.getElementById("mo4").removeAttribute("lspace");
+
+ // Change to/from inferred mrow
+ var mo1 = document.createElementNS("http://www.w3.org/1998/Math/MathML", "mo");
+ mo1.innerHTML = "%";
+ document.getElementById("math1").appendChild(mo1);
+ document.getElementById("math2").removeChild(document.getElementById("mo5"));
+
+ document.documentElement.removeAttribute("class");
+ }
+ window.addEventListener("MozReftestInvalidate", doTest, false);
+ </script>
+ </body>
+</html>