summaryrefslogtreecommitdiffstats
path: root/layout/reftests/mathml/displaystyle-4.html
diff options
context:
space:
mode:
Diffstat (limited to 'layout/reftests/mathml/displaystyle-4.html')
-rw-r--r--layout/reftests/mathml/displaystyle-4.html37
1 files changed, 37 insertions, 0 deletions
diff --git a/layout/reftests/mathml/displaystyle-4.html b/layout/reftests/mathml/displaystyle-4.html
new file mode 100644
index 000000000..3dd47baa7
--- /dev/null
+++ b/layout/reftests/mathml/displaystyle-4.html
@@ -0,0 +1,37 @@
+<!DOCTYPE html>
+<html class="reftest-wait">
+ <head>
+ <title>displaystyle</title>
+ <meta charset="utf-8"/>
+ <script type="text/javascript">
+ function doTest() {
+ document.getElementById('mathOperator').
+ setAttribute('mathbackground', 'red');
+ document.documentElement.removeAttribute("class");
+ }
+ window.addEventListener("MozReftestInvalidate", doTest, false);
+ </script>
+ </head>
+ <body>
+
+ <!-- Test dynamic change (see bug 832800) -->
+ <math>
+ <mstyle displaystyle="true">
+ <mfrac>
+ <mrow>
+ <mi>X</mi>
+ <mo id="mathOperator">+</mo>
+ <mfrac>
+ <mrow><mi>X</mi></mrow>
+ <mrow><mi>X</mi></mrow>
+ </mfrac>
+ </mrow>
+ <mrow>
+ <mi>X</mi>
+ </mrow>
+ </mfrac>
+ </mstyle>
+ </math>
+
+ </body>
+</html>