summaryrefslogtreecommitdiffstats
path: root/layout/reftests/mathml/dir-11.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/dir-11.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/dir-11.html')
-rw-r--r--layout/reftests/mathml/dir-11.html98
1 files changed, 98 insertions, 0 deletions
diff --git a/layout/reftests/mathml/dir-11.html b/layout/reftests/mathml/dir-11.html
new file mode 100644
index 000000000..ebb2018bf
--- /dev/null
+++ b/layout/reftests/mathml/dir-11.html
@@ -0,0 +1,98 @@
+<!DOCTYPE html>
+<html class="reftest-wait">
+ <head><title>Test direction: dynamic change</title></head>
+ <body>
+ <p>
+ math:
+ <math>
+ <mi>a</mi>
+ <mi>b</mi>
+ <mi>c</mi>
+ </math>
+ <math dir="ltr">
+ <mi>a</mi>
+ <mi>b</mi>
+ <mi>c</mi>
+ </math>
+ <math dir="rtl">
+ <mi>a</mi>
+ <mi>b</mi>
+ <mi>c</mi>
+ </math>
+ </p>
+
+ <p>
+ mstyle:
+ <math>
+ <mstyle>
+ <mi>a</mi>
+ <mi>b</mi>
+ <mi>c</mi>
+ </mstyle>
+ </math>
+ <math>
+ <mstyle dir="ltr">
+ <mi>a</mi>
+ <mi>b</mi>
+ <mi>c</mi>
+ </mstyle>
+ </math>
+ <math>
+ <mstyle dir="rtl">
+ <mi>a</mi>
+ <mi>b</mi>
+ <mi>c</mi>
+ </mstyle>
+ </math>
+ </p>
+
+ <p>
+ mrow:
+ <math>
+ <mrow>
+ <mi>a</mi>
+ <mi>b</mi>
+ <mi>c</mi>
+ </mrow>
+ </math>
+ <math>
+ <mrow dir="ltr">
+ <mi>a</mi>
+ <mi>b</mi>
+ <mi>c</mi>
+ </mrow>
+ </math>
+ <math>
+ <mrow dir="rtl">
+ <mi>a</mi>
+ <mi>b</mi>
+ <mi>c</mi>
+ </mrow>
+ </math>
+ </p>
+
+ <script>
+ function doTest()
+ {
+ var x = document.getElementsByTagName("math");
+ x[0].setAttribute("dir", "rtl");
+ x[1].setAttribute("dir", "rtl");
+ x[2].removeAttribute("dir");
+
+ x = document.getElementsByTagName("mstyle");
+ x[0].setAttribute("dir", "rtl");
+ x[1].setAttribute("dir", "rtl");
+ x[2].removeAttribute("dir");
+
+ x = document.getElementsByTagName("mrow");
+ x[0].setAttribute("dir", "rtl");
+ x[1].setAttribute("dir", "rtl");
+ x[2].removeAttribute("dir");
+
+ document.documentElement.removeAttribute("class");
+ }
+ window.addEventListener("MozReftestInvalidate", doTest, false);
+ </script>
+
+ </body>
+</html>