Bug 838509 - Part 3: Update tests for mstyle/math and add more tests. r=roc

This commit is contained in:
Frédéric Wang 2014-01-15 10:08:00 -05:00
parent 36618efb4f
commit c05a4b62fc
18 changed files with 298 additions and 142 deletions

View File

@ -0,0 +1,76 @@
<!DOCTYPE html>
<html>
<head><title>Test direction: dynamic change</title></head>
<body>
<p>
math:
<math dir="rtl">
<mi>a</mi>
<mi>b</mi>
<mi>c</mi>
</math>
<math dir="rtl">
<mi>a</mi>
<mi>b</mi>
<mi>c</mi>
</math>
<math>
<mi>a</mi>
<mi>b</mi>
<mi>c</mi>
</math>
</p>
<p>
mstyle:
<math>
<mstyle dir="rtl">
<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>
<math>
<mstyle>
<mi>a</mi>
<mi>b</mi>
<mi>c</mi>
</mstyle>
</math>
</p>
<p>
mrow:
<math>
<mrow dir="rtl">
<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>
<math>
<mrow>
<mi>a</mi>
<mi>b</mi>
<mi>c</mi>
</mrow>
</math>
</p>
</body>
</html>

View File

@ -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>

View File

@ -1,29 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>math as mstyle</title>
</head>
<body>
<p>
<math xmlns="http://www.w3.org/1998/Math/MathML">
<mfrac numalign="right">
<mn>123</mn>
<mn>456789</mn>
</mfrac>
</math>
</p>
<p>
<math xmlns="http://www.w3.org/1998/Math/MathML">
<mstyle scriptsizemultiplier="1.414">
<msup>
<mi>x</mi>
<mn>2</mn>
</msup>
</mstyle>
</math>
</p>
</body>
</html>

View File

@ -1,29 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>math as mstyle</title>
</head>
<body>
<p>
<math xmlns="http://www.w3.org/1998/Math/MathML" numalign="right">
<mfrac>
<mn>123</mn>
<mn>456789</mn>
</mfrac>
</math>
</p>
<p>
<math xmlns="http://www.w3.org/1998/Math/MathML" scriptsizemultiplier="1.414">
<mstyle>
<msup>
<mi>x</mi>
<mn>2</mn>
</msup>
</mstyle>
</math>
</p>
</body>
</html>

View File

@ -39,5 +39,17 @@
</mrow>
</math>
<p>
<math>
<mrow>
<!-- mathvariant on math (should apply to all token element descendants
like single-char mi, mtext etc) -->
<mtext mathvariant="sans-serif">cos</mtext>
<mo>&#x2061;</mo>
<mi mathvariant="sans-serif">x</mi>
</mrow>
</math>
</body>
</html>

View File

@ -32,5 +32,15 @@
</mstyle>
</math>
<p>
<math mathvariant="sans-serif">
<mrow>
<mtext>cos</mtext>
<mo>&#x2061;</mo>
<mi>x</mi>
</mrow>
</math>
</body>
</html>

View File

@ -35,5 +35,18 @@
</mstyle>
</mrow>
</math>
<p>
<math id="Math0" mathvariant="fraktur">
<mtext>Hello</mtext>
</math>
<math id="Math1" mathvariant="monospace">
<mtext>Hello</mtext>
</math>
<math id="Math2">
<mtext>Hello</mtext>
</math>
</body>
</html>

View File

@ -1,5 +1,5 @@
<!doctype html>
<html>
<html class="reftest-wait">
<head>
<title>Dynamic mathvariant tests</title>
</head>
@ -35,7 +35,21 @@
</mstyle>
</mrow>
</math>
<p>
<math id="Math0">
<mtext>Hello</mtext>
</math>
<math id="Math1" mathvariant="fraktur">
<mtext>Hello</mtext>
</math>
<math id="Math2" mathvariant="bold">
<mtext>Hello</mtext>
</math>
<script>
function doTest()
{
document.getElementById("Mi0").setAttribute("mathvariant", "script");
document.getElementById("Mi1").innerHTML = "BB";
document.getElementById("Mi2").innerHTML = "B";
@ -50,6 +64,13 @@
document.getElementById("Mstyle0").setAttribute("mathvariant", "fraktur");
document.getElementById("Mstyle1").setAttribute("mathvariant", "monospace");
document.getElementById("Mstyle2").removeAttribute("mathvariant");
document.getElementById("Math0").setAttribute("mathvariant", "fraktur");
document.getElementById("Math1").setAttribute("mathvariant", "monospace");
document.getElementById("Math2").removeAttribute("mathvariant");
document.documentElement.removeAttribute("class");
}
window.addEventListener("MozReftestInvalidate", doTest, false);
</script>
</body>
</html>

View File

@ -18,7 +18,7 @@
<td>mfenced: open, close, separators </td>
<td><math xmlns="http://www.w3.org/1998/Math/MathML">
<mstyle>
<mfenced open="[" close="]" separators=";">
<mfenced>
<mn>1</mn>
<mn>2</mn>
</mfenced>
@ -29,7 +29,7 @@
<td>menclose: notation</td>
<td><math xmlns="http://www.w3.org/1998/Math/MathML">
<mstyle>
<menclose notation="box">
<menclose>
<mtext>menclose</mtext>
</menclose>
</mstyle>
@ -39,7 +39,7 @@
<td>mfrac: bevelled, linethickness</td>
<td><math xmlns="http://www.w3.org/1998/Math/MathML">
<mstyle>
<mfrac bevelled="true" linethickness="thick">
<mfrac>
<mi>a</mi>
<mi>b</mi>
</mfrac>
@ -50,7 +50,7 @@
<td>mfrac: numalign</td>
<td><math xmlns="http://www.w3.org/1998/Math/MathML">
<mstyle>
<mfrac numalign="right">
<mfrac>
<mn>1</mn>
<mn>234</mn>
</mfrac>
@ -61,7 +61,7 @@
<td>mfrac: denomalign</td>
<td><math xmlns="http://www.w3.org/1998/Math/MathML">
<mstyle>
<mfrac denomalign="right">
<mfrac>
<mn>123</mn>
<mn>4</mn>
</mfrac>
@ -72,7 +72,7 @@
<td>mmultiscripts: subscriptshift, superscriptshift </td>
<td><math xmlns="http://www.w3.org/1998/Math/MathML">
<mstyle>
<mmultiscripts subscriptshift="1em" superscriptshift="1em">
<mmultiscripts>
<mi>a</mi>
<mi>b</mi>
<mi>c</mi>
@ -87,7 +87,7 @@
<td>msubsup: subscriptshift, superscriptshift</td>
<td><math xmlns="http://www.w3.org/1998/Math/MathML">
<mstyle>
<msubsup subscriptshift="1em" superscriptshift="1em">
<msubsup>
<mi>a</mi>
<mi>b</mi>
<mi>c</mi>
@ -99,7 +99,7 @@
<td>msub: subscriptshift</td>
<td><math xmlns="http://www.w3.org/1998/Math/MathML">
<mstyle>
<msub subscriptshift="1em">
<msub>
<mi>a</mi>
<mi>b</mi>
</msub>
@ -110,7 +110,7 @@
<td>msup: superscriptshift</td>
<td><math xmlns="http://www.w3.org/1998/Math/MathML">
<mstyle>
<msup superscriptshift="1em">
<msup>
<mi>a</mi>
<mi>b</mi>
</msup>

View File

@ -17,10 +17,9 @@
<tr>
<td>mpadded: width</td>
<td><math xmlns="http://www.w3.org/1998/Math/MathML">
<!-- attribute width on mstyle does not apply to mpadded -->
<mstyle>
<mtext>_</mtext>
<mpadded/> <!-- width="1em" -->
<mpadded/>
<mtext>_</mtext>
</mstyle>
</math></td>
@ -28,10 +27,9 @@
<tr>
<td>mpadded: lspace</td>
<td><math xmlns="http://www.w3.org/1998/Math/MathML">
<!-- attribute lspace on mstyle does not apply to mpadded -->
<mstyle>
<mtext>_</mtext>
<mpadded/> <!-- lspace="1em" -->
<mpadded/>
<mtext>_</mtext>
</mstyle>
</math></td>
@ -39,12 +37,11 @@
<tr>
<td>mpadded: height</td>
<td><math xmlns="http://www.w3.org/1998/Math/MathML">
<!-- attribute height on mstyle does not apply to mpadded -->
<mstyle>
<msup>
<mrow>
<mtext>_</mtext>
<mpadded/> <!-- height="1em" -->
<mpadded/>
<mtext>_</mtext>
</mrow>
<mtext>_</mtext>
@ -55,12 +52,11 @@
<tr>
<td>mpadded: depth</td>
<td><math xmlns="http://www.w3.org/1998/Math/MathML">
<!-- attribute depth on mstyle does not apply to mpadded -->
<mstyle>
<msub>
<mrow>
<mtext>_</mtext>
<mpadded/> <!-- depth="1em" -->
<mpadded/>
<mtext>_</mtext>
</mrow>
<mtext>_</mtext>
@ -73,7 +69,7 @@
<td><math xmlns="http://www.w3.org/1998/Math/MathML">
<mstyle>
<mtext>_</mtext>
<mspace width="1em"/>
<mspace/>
<mtext>_</mtext>
</mstyle>
</math></td>
@ -85,7 +81,7 @@
<msup>
<mrow>
<mtext>_</mtext>
<mspace height="1em"/>
<mspace/>
<mtext>_</mtext>
</mrow>
<mtext>_</mtext>
@ -100,7 +96,7 @@
<msub>
<mrow>
<mtext>_</mtext>
<mspace depth="1em"/>
<mspace/>
<mtext>_</mtext>
</mrow>
<mtext>_</mtext>
@ -108,12 +104,11 @@
</mstyle>
</math></td>
</tr>
<!-- maction actiontype cannot be set on mstyle -->
<tr>
<td>maction: selection</td>
<td><math xmlns="http://www.w3.org/1998/Math/MathML">
<mstyle>
<maction actiontype="toggle" selection="2">
<maction actiontype="toggle">
<mn>1</mn>
<mn>2</mn>
</maction>
@ -123,11 +118,10 @@
<tr>
<td>mtable: align</td>
<td><math xmlns="http://www.w3.org/1998/Math/MathML">
<!-- attribute align on mstyle does not apply to mtable -->
<mstyle>
<mrow>
<mtext>_</mtext>
<mtable> <!-- align="baseline" -->
<mtable>
<mtr>
<mtd>
<mtext>&#x2015;</mtext>

View File

@ -12,12 +12,14 @@
<body>
<!-- The attributes below should no longer have effect on <mstyle>/<math>
elements. See bug 838509 -->
<table>
<tbody>
<tr>
<td>mpadded: width</td>
<td><math xmlns="http://www.w3.org/1998/Math/MathML">
<!-- mpadded does not use attributes of mstyle -->
<td><math xmlns="http://www.w3.org/1998/Math/MathML" width="1em">
<mstyle width="1em">
<mtext>_</mtext>
<mpadded/>
@ -27,8 +29,7 @@
</tr>
<tr>
<td>mpadded: lspace</td>
<td><math xmlns="http://www.w3.org/1998/Math/MathML">
<!-- mpadded does not use attributes of mstyle -->
<td><math xmlns="http://www.w3.org/1998/Math/MathML" lspace="1em">
<mstyle lspace="1em">
<mtext>_</mtext>
<mpadded/>
@ -38,8 +39,7 @@
</tr>
<tr>
<td>mpadded: height</td>
<td><math xmlns="http://www.w3.org/1998/Math/MathML">
<!-- mpadded does not use attributes of mstyle -->
<td><math xmlns="http://www.w3.org/1998/Math/MathML" height="1em">
<mstyle height="1em">
<msup>
<mrow>
@ -54,8 +54,7 @@
</tr>
<tr>
<td>mpadded: depth</td>
<td><math xmlns="http://www.w3.org/1998/Math/MathML">
<!-- mpadded does not use attributes of mstyle -->
<td><math xmlns="http://www.w3.org/1998/Math/MathML" depth="1em">
<mstyle depth="1em">
<msub>
<mrow>
@ -70,7 +69,7 @@
</tr>
<tr>
<td>mspace: width</td>
<td><math xmlns="http://www.w3.org/1998/Math/MathML">
<td><math xmlns="http://www.w3.org/1998/Math/MathML" width="1em">
<mstyle width="1em">
<mtext>_</mtext>
<mspace/>
@ -80,7 +79,7 @@
</tr>
<tr>
<td>mspace: height</td>
<td><math xmlns="http://www.w3.org/1998/Math/MathML">
<td><math xmlns="http://www.w3.org/1998/Math/MathML" height="1em">
<mstyle height="1em">
<msup>
<mrow>
@ -95,7 +94,7 @@
</tr>
<tr>
<td>mspace: depth</td>
<td><math xmlns="http://www.w3.org/1998/Math/MathML">
<td><math xmlns="http://www.w3.org/1998/Math/MathML" depth="1em">
<mstyle depth="1em">
<msub>
<mrow>
@ -108,10 +107,9 @@
</mstyle>
</math></td>
</tr>
<!-- maction actiontype cannot be set on mstyle -->
<tr>
<td>maction: selection</td>
<td><math xmlns="http://www.w3.org/1998/Math/MathML">
<td><math xmlns="http://www.w3.org/1998/Math/MathML" selection="2">
<mstyle selection="2">
<maction actiontype="toggle">
<mn>1</mn>
@ -122,8 +120,7 @@
</tr>
<tr>
<td>mtable: align</td>
<td><math xmlns="http://www.w3.org/1998/Math/MathML">
<!-- attribute align on mstyle does not apply to mtable -->
<td><math xmlns="http://www.w3.org/1998/Math/MathML" align="baseline">
<mstyle align="baseline">
<mrow>
<mtext>_</mtext>

View File

@ -22,7 +22,7 @@
<!-- We assume that the infix/postfix forms of _ do -->
<!-- not have the same lspace/rspace values in the operator dictionary -->
<mtext>_</mtext>
<mo form="postfix">_</mo>
<mo>_</mo>
<mtext>_</mtext>
</mrow>
</mstyle>
@ -36,7 +36,7 @@
<!-- We assume that the infix form of _ has -->
<!-- nonzero lspace/rspace values in the operator dictionary -->
<mtext>_</mtext>
<mo lspace="0" rspace="0">_</mo>
<mo>_</mo>
<mtext>_</mtext>
</mrow>
</mstyle>
@ -49,7 +49,7 @@
<mover>
<!-- We assume that the arrow has stretchy=true in the operator dictionary -->
<mtext>abcd</mtext>
<mo stretchy="false">&#x2192;</mo>
<mo>&#x2192;</mo>
</mover>
</mstyle>
</math></td>
@ -67,7 +67,7 @@
<mo>+</mo>
<mi>z</mi>
</mrow>
<mo accent="false">&#x23de;</mo>
<mo>&#x23de;</mo>
</mover>
</mstyle>
</math></td>
@ -76,7 +76,7 @@
<td>mo: maxsize</td>
<td><math xmlns="http://www.w3.org/1998/Math/MathML">
<mstyle>
<mo maxsize="1">(</mo>
<mo>(</mo>
<mspace height="3em"/>
</mstyle>
</math></td>
@ -85,7 +85,7 @@
<td>mo: minsize</td>
<td><math xmlns="http://www.w3.org/1998/Math/MathML">
<mstyle>
<mo minsize="3">(</mo>
<mo>(</mo>
<mspace height="1em"/>
</mstyle>
</math></td>
@ -96,7 +96,7 @@
<!-- We assume that ( has symmetric=true in the operator dictionary -->
<mstyle>
<mtext>_</mtext>
<mo symmetric="false" minsize="2">(</mo>
<mo minsize="2">(</mo>
<mtext>_</mtext>
</mstyle>
</math></td>
@ -107,7 +107,7 @@
<!-- We assume that &#x2211; has movablelimits=true in the operator dictionary -->
<mstyle>
<munderover>
<mo movablelimits="false">&#x2211;</mo>
<mo>&#x2211;</mo>
<mi>a</mi>
<mi>b</mi>
</munderover>
@ -119,7 +119,7 @@
<td><math xmlns="http://www.w3.org/1998/Math/MathML" display="block">
<!-- We assume that &#x2211; has largeop=true in the operator dictionary -->
<mstyle>
<mo largeop="false">&#x2211;</mo>
<mo>&#x2211;</mo>
</mstyle>
</math></td>
</tr>

View File

@ -12,11 +12,14 @@
<body>
<!-- The attributes below (except math@display) should no longer have effect on
<mstyle>/<math> elements. See bug 838509 -->
<table>
<tbody>
<tr>
<td>mo: form</td>
<td><math xmlns="http://www.w3.org/1998/Math/MathML">
<td><math xmlns="http://www.w3.org/1998/Math/MathML" form="postfix">
<mstyle form="postfix">
<mrow>
<!-- We assume that the infix/postfix forms of _ do -->
@ -30,7 +33,7 @@
</tr>
<tr>
<td>mo: lspace, rspace</td>
<td><math xmlns="http://www.w3.org/1998/Math/MathML">
<td><math xmlns="http://www.w3.org/1998/Math/MathML" lspace="0" rspace="0">
<mstyle lspace="0" rspace="0">
<mrow>
<!-- We assume that the infix form of _ has -->
@ -44,7 +47,7 @@
</tr>
<tr>
<td>mo: stretchy</td>
<td><math xmlns="http://www.w3.org/1998/Math/MathML">
<td><math xmlns="http://www.w3.org/1998/Math/MathML" stretchy="false">
<mstyle stretchy="false">
<mover>
<!-- We assume that the arrow has stretchy=true in the operator dictionary -->
@ -56,7 +59,7 @@
</tr>
<tr>
<td>mo: accent</td>
<td><math xmlns="http://www.w3.org/1998/Math/MathML">
<td><math xmlns="http://www.w3.org/1998/Math/MathML" accent="false">
<mstyle accent="false">
<mover>
<!-- We assume &#x23de; has accent=true in the operator dictionary -->
@ -74,7 +77,7 @@
</tr>
<tr>
<td>mo: maxsize</td>
<td><math xmlns="http://www.w3.org/1998/Math/MathML">
<td><math xmlns="http://www.w3.org/1998/Math/MathML" maxsize="1">
<mstyle maxsize="1">
<mo>(</mo>
<mspace height="3em"/>
@ -83,7 +86,7 @@
</tr>
<tr>
<td>mo: minsize</td>
<td><math xmlns="http://www.w3.org/1998/Math/MathML">
<td><math xmlns="http://www.w3.org/1998/Math/MathML" minsize="3">
<mstyle minsize="3">
<mo>(</mo>
<mspace height="1em"/>
@ -92,7 +95,7 @@
</tr>
<tr>
<td>mo: symmetric</td>
<td><math xmlns="http://www.w3.org/1998/Math/MathML">
<td><math xmlns="http://www.w3.org/1998/Math/MathML" symmetric="false">
<!-- We assume that ( has symmetric=true in the operator dictionary -->
<mstyle symmetric="false">
<mtext>_</mtext>
@ -103,7 +106,7 @@
</tr>
<tr>
<td>mo: movablelimits</td>
<td><math xmlns="http://www.w3.org/1998/Math/MathML">
<td><math xmlns="http://www.w3.org/1998/Math/MathML" movablelimits="false">
<!-- We assume that &#x2211; has movablelimits=true in the operator dictionary -->
<mstyle movablelimits="false">
<munderover>
@ -116,7 +119,7 @@
</tr>
<tr>
<td>mo: largeop</td>
<td><math xmlns="http://www.w3.org/1998/Math/MathML" display="block">
<td><math xmlns="http://www.w3.org/1998/Math/MathML" display="block" largeop="false">
<!-- We assume that &#x2211; has largeop=true in the operator dictionary -->
<mstyle largeop="false">
<mo>&#x2211;</mo>

View File

@ -18,7 +18,7 @@
<td>mover: accent</td>
<td><math xmlns="http://www.w3.org/1998/Math/MathML">
<mstyle>
<mover accent="false">
<mover>
<!-- We assume &#x23de; is accent in the operator dictionary -->
<mrow>
<mi>x</mi>
@ -36,7 +36,7 @@
<td>munder: accentunder</td>
<td><math xmlns="http://www.w3.org/1998/Math/MathML">
<mstyle>
<munder accentunder="false">
<munder>
<!-- We assume &#x23df; is accent in the operator dictionary -->
<mrow>
<mi>x</mi>
@ -54,7 +54,7 @@
<td>munderover: accent, accentunder</td>
<td><math xmlns="http://www.w3.org/1998/Math/MathML">
<mstyle>
<munderover accent="false" accentunder="false">
<munderover>
<!-- We assume &#x23de; and &#x23df; are accents in the operator dictionary -->
<mrow>
<mi>x</mi>
@ -69,14 +69,6 @@
</mstyle>
</math></td>
</tr>
<tr>
<td>mi: mathvariant</td>
<td><math xmlns="http://www.w3.org/1998/Math/MathML">
<mstyle><mi mathvariant="normal">a</mi><mi mathvariant="normal">bb</mi></mstyle><mo>,</mo>
<mstyle><mi mathvariant="bold">a</mi><mi mathvariant="bold">bb</mi></mstyle><mo>,</mo>
<mstyle><mi mathvariant="italic">a</mi><mi mathvariant="italic">bb</mi></mstyle>
</math></td>
</tr>
</tbody>
</table>
</body>

View File

@ -12,11 +12,14 @@
<body>
<!-- The attributes below should no longer have effect on <mstyle>/<math>
elements. See bug 838509 -->
<table>
<tbody>
<tr>
<td>mover: accent</td>
<td><math xmlns="http://www.w3.org/1998/Math/MathML">
<td><math xmlns="http://www.w3.org/1998/Math/MathML" accent="false">
<mstyle accent="false">
<mover>
<!-- We assume &#x23de; is accent in the operator dictionary -->
@ -34,7 +37,7 @@
</tr>
<tr>
<td>munder: accentunder</td>
<td><math xmlns="http://www.w3.org/1998/Math/MathML">
<td><math xmlns="http://www.w3.org/1998/Math/MathML" accentunder="false">
<mstyle accentunder="false">
<munder>
<!-- We assume &#x23df; is accent in the operator dictionary -->
@ -52,7 +55,7 @@
</tr>
<tr>
<td>munderover: accent, accentunder</td>
<td><math xmlns="http://www.w3.org/1998/Math/MathML">
<td><math xmlns="http://www.w3.org/1998/Math/MathML" accent="false" accentunder="false">
<mstyle accent="false" accentunder="false">
<munderover>
<!-- We assume &#x23de; and &#x23df; are accents in the operator dictionary -->
@ -69,14 +72,6 @@
</mstyle>
</math></td>
</tr>
<tr>
<td>mi: mathvariant</td>
<td><math xmlns="http://www.w3.org/1998/Math/MathML">
<mstyle mathvariant="normal"><mi>a</mi><mi>bb</mi></mstyle><mo>,</mo>
<mstyle mathvariant="bold"><mi>a</mi><mi>bb</mi></mstyle><mo>,</mo>
<mstyle mathvariant="italic"><mi>a</mi><mi>bb</mi></mstyle>
</math></td>
</tr>
</tbody>
</table>
</body>

View File

@ -9,7 +9,7 @@
<math xmlns="http://www.w3.org/1998/Math/MathML">
<mstyle>
<ms lquote="(" rquote=")">text</ms>
<ms>text</ms>
</mstyle>
</math>

View File

@ -7,7 +7,10 @@
</head>
<body>
<math xmlns="http://www.w3.org/1998/Math/MathML">
<!-- The attributes below should no longer have effect on <mstyle>/<math>
elements. See bug 838509 -->
<math xmlns="http://www.w3.org/1998/Math/MathML" lquote="(" rquote=")">
<mstyle lquote="(" rquote=")">
<ms>text</ms>
</mstyle>

View File

@ -8,6 +8,7 @@ fails == dir-6.html dir-6-ref.html
fails == dir-8.html dir-8-ref.html
fails == dir-9.html dir-9-ref.html # Bug 787215
== dir-10.html dir-10-ref.html
== dir-11.html dir-11-ref.html
== displaystyle-1.html displaystyle-1-ref.html
== displaystyle-2.html displaystyle-2-ref.html
== displaystyle-3.html displaystyle-3-ref.html
@ -82,14 +83,13 @@ fails-if((OSX&&(OSX<10.8))||/^Windows\x20NT\x206\.[^0]/.test(http.oscpu)||Androi
== mstyle-2.xhtml mstyle-2-ref.xhtml
== mstyle-3.xhtml mstyle-3-ref.xhtml
== mstyle-4.xhtml mstyle-4-ref.xhtml
fails == mstyle-5.xhtml mstyle-5-ref.xhtml # Bug 787215
== mstyle-5.xhtml mstyle-5-ref.xhtml # Bug 787215
== scale-stretchy-1.xhtml scale-stretchy-1-ref.xhtml
!= scale-stretchy-2.xhtml scale-stretchy-2-ref.xhtml
== scale-stretchy-3.xhtml scale-stretchy-3-ref.xhtml
!= scale-stretchy-4.xhtml scale-stretchy-4-ref.xhtml
!= scale-stretchy-5.xhtml scale-stretchy-5-ref.xhtml
!= stretchy-1.html stretchy-1-ref.html
== math-as-mstyle-1.xhtml math-as-mstyle-1-ref.xhtml
== mspace-1.html mspace-1-ref.html
== mpadded-1.html mpadded-1-ref.html
== mpadded-2.html mpadded-2-ref.html