author | James Kitchener <jkitch.bug@gmail.com> |
Fri, 04 Apr 2014 17:55:00 +0200 | |
changeset 177554 | 05826bb1b9a9ecba6eb3f1b48fc2f8de5c59a60a |
parent 177553 | 86bb1d3444bf87f77cc76d76eea17355bd7777b2 |
child 177555 | 878193cac6b7cc9d4cc6c83d241daa1f5e77bcd0 |
push id | 26556 |
push user | ryanvm@gmail.com |
push date | Tue, 08 Apr 2014 22:16:57 +0000 |
treeherder | mozilla-central@5811efc11011 [default view] [failures only] |
perfherder | [talos] [build metrics] [platform microbench] (compared to previous push) |
reviewers | fredw |
bugs | 877563 |
milestone | 31.0a1 |
first release with | nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
|
last release without | nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
|
new file mode 100644 --- /dev/null +++ b/layout/reftests/mathml/mo-lspace-rspace-2-ref.html @@ -0,0 +1,379 @@ +<!DOCTYPE html> +<html> + <head> + <title>mo-lspace-rspace</title> + <style type="text/css"> + mo,td { + background-color: red; + } + msub, mfrac, msup, msubsup, mmultiscripts, + mover, munder, munderover, mpadded, merror + { + background-color: blue + } + math[display] + { + background-color: blue + } + </style> + </head> + <body> + + <p> + No lspace or rspace added: + </p> + <p> + <math> + <mrow> + <mo lspace="0" rspace="0">%</mo> + </mrow> + </math> + <math> + <mfrac> + <mo lspace="0" rspace="0">%</mo> + <mo lspace="0" rspace="0">%</mo> + </mfrac> + </math> + <math> + <msqrt> + <mo lspace="0" rspace="0">%</mo> + </msqrt> + </math> + <math> + <mroot> + <mo lspace="0" rspace="0">%</mo> + <mo lspace="0" rspace="0">%</mo> + </mroot> + </math> + <math> + <mstyle> + <mo lspace="0" rspace="0">%</mo> + </mstyle> + </math> + </p> + + <p> + <table> + <tr> + <td> + <math> + <mphantom> + <mo lspace="0" rspace="0">%</mo> + </mphantom> + </math> + </td> + </tr> + </table> + </p> + + <p> + <math> + <menclose notation="circle"> + <mo lspace="0" rspace="0">%</mo> + </menclose> + </math> + <math> + <msub> + <mo lspace="0" rspace="0">%</mo> + <mo lspace="0" rspace="0">%</mo> + </msub> + </math> + <math> + <msup> + <mo lspace="0" rspace="0">%</mo> + <mo lspace="0" rspace="0">%</mo> + </msup> + </math> + <math> + <msubsup> + <mo lspace="0" rspace="0">%</mo> + <mo lspace="0" rspace="0">%</mo> + <mo lspace="0" rspace="0">%</mo> + </msubsup> + </math> + <math> + <munder> + <mo lspace="0" rspace="0">%</mo> + <mo lspace="0" rspace="0">%</mo> + </munder> + </math> + <math> + <mover> + <mo lspace="0" rspace="0">%</mo> + <mo lspace="0" rspace="0">%</mo> + </mover> + </math> + <math> + <munderover> + <mo lspace="0" rspace="0">%</mo> + <mo lspace="0" rspace="0">%</mo> + <mo lspace="0" rspace="0">%</mo> + </munderover> + </math> + </p> + + <p> + <math> + <mmultiscripts> + <mo lspace="0" rspace="0">%</mo> + <mo lspace="0" rspace="0">%</mo> + <mo lspace="0" rspace="0">%</mo> + <mprescripts/> + <mo lspace="0" rspace="0">%</mo> + <mo lspace="0" rspace="0">%</mo> + </mmultiscripts> + </math> + <math> + <mtable> + <mtr> + <mtd> + <mo lspace="0" rspace="0">%</mo> + </mtd> + </mtr> + </mtable> + </math> + <math> + <mo lspace="0" rspace="0">%</mo> + </math> + <math> + <msub> + <mrow> + <mo lspace="0" rspace="0">%</mo> + </mrow> + <mo lspace="0" rspace="0">%</mo> + </msub> + </math> + </p> + + <p> + <math> + <msub> + <msub> + <mo lspace="0" rspace="0">%</mo> + <mo lspace="0" rspace="0">%</mo> + </msub> + <mo lspace="0" rspace="0">%</mo> + </msub> + </math> + <math> + <munder> + <munder> + <mo lspace="0" rspace="0">%</mo> + <mo lspace="0" rspace="0">%</mo> + </munder> + <mo lspace="0" rspace="0">%</mo> + </munder> + </math> + <math> + <mfrac> + <mfrac> + <mo lspace="0" rspace="0">%</mo> + <mo lspace="0" rspace="0">%</mo> + </mfrac> + <mo lspace="0" rspace="0">%</mo> + </mfrac> + </math> + </p> + + <p> + <math> + <menclose notation="circle"> + <mo lspace="0" rspace="0">%</mo> + </menclose> + <menclose notation="circle"> + <mo lspace="0" rspace="0">%</mo> + </menclose> + <mroot> + <mo lspace="0" rspace="0">%</mo> + <mo lspace="0" rspace="0">%</mo> + </mroot> + </math> + <math> + <mpadded height="+1em"> + <mo lspace="0" rspace="0">%</mo> + </mpadded> + </math> + <math> + <merror> + <mo lspace="0" rspace="0">%</mo> + </merror> + </math> + </p> + + <math display="block"> + <mo lspace="0" rspace="0">%</mo> + </math> + + <p> + lspace and rspace rendered as appropriate + </p> + <p> + <math> + <mrow> + <mo lspace="thinmathspace" rspace="thinmathspace">%</mo> + </mrow> + <mfrac> + <mo lspace="thinmathspace" rspace="thinmathspace">%</mo> + <mo lspace="0" rspace="0">%</mo> + </mfrac> + <msqrt> + <mo lspace="0" rspace="0">%</mo> + </msqrt> + <mstyle> + <mo lspace="thinmathspace" rspace="thinmathspace">%</mo> + </mstyle> + </math> + </p> + + <p> + <table> + <tr> + <td> + <math> + <mphantom> + <mo lspace="thinmathspace" rspace="thinmathspace">%</mo> + <mo lspace="thinmathspace" rspace="thinmathspace">%</mo> + </mphantom> + </math> + </td> + </tr> + </table> + </p> + + <p> + <math> + <mfenced> + <!-- always treated as in an mrow with > 1 child --> + <mo lspace="thinmathspace" rspace="thinmathspace">%</mo> + </mfenced> + </math> + <math> + <mfenced> + <mo lspace="thinmathspace" rspace="thinmathspace">%</mo> + <mo lspace="thinmathspace" rspace="thinmathspace">%</mo> + </mfenced> + <menclose notation="circle"> + <mo lspace="thinmathspace" rspace="thinmathspace">%</mo> + <mo lspace="thinmathspace" rspace="thinmathspace">%</mo> + </menclose> + <msub> + <mo lspace="thinmathspace" rspace="thinmathspace">%</mo> + <mo lspace="0" rspace="0">%</mo> + </msub> + <msup> + <mo lspace="thinmathspace" rspace="thinmathspace">%</mo> + <mo lspace="0" rspace="0">%</mo> + </msup> + <msubsup> + <mo lspace="thinmathspace" rspace="thinmathspace">%</mo> + <mo lspace="0" rspace="0">%</mo> + <mo lspace="0" rspace="0">%</mo> + </msubsup> + <munder> + <mo lspace="thinmathspace" rspace="thinmathspace">%</mo> + <mo lspace="0" rspace="0">%</mo> + </munder> + <mover> + <mo lspace="thinmathspace" rspace="thinmathspace">%</mo> + <mo lspace="0" rspace="0">%</mo> + </mover> + <munderover> + <mo lspace="thinmathspace" rspace="thinmathspace">%</mo> + <mo lspace="0" rspace="0">%</mo> + <mo lspace="0" rspace="0">%</mo> + </munderover> + </math> + </p> + + <p> + <math> + <mmultiscripts> + <mo lspace="thinmathspace" rspace="thinmathspace">%</mo> + <mo lspace="0" rspace="0">%</mo> + <mo lspace="0" rspace="0">%</mo> + <mprescripts/> + <mo lspace="0" rspace="0">%</mo> + <mo lspace="0" rspace="0">%</mo> + </mmultiscripts> + <mtable> + <mtr> + <mtd> + <mo lspace="thinmathspace" rspace="thinmathspace">%</mo> + <mo lspace="thinmathspace" rspace="thinmathspace">%</mo> + </mtd> + </mtr> + </mtable> + <mo lspace="thinmathspace" rspace="thinmathspace">%</mo> + <msub> + <mrow> + <mo lspace="thinmathspace" rspace="thinmathspace">%</mo> + </mrow> + <mo lspace="0" rspace="0">%</mo> + </msub> + <msub> + <mrow> + <mo lspace="thinmathspace" rspace="thinmathspace">%</mo> + <mo lspace="thinmathspace" rspace="thinmathspace">%</mo> + </mrow> + <mo lspace="0" rspace="0">%</mo> + </msub> + </math> + </p> + + <p> + <math> + <msub> + <msub> + <mo lspace="thinmathspace" rspace="thinmathspace">%</mo> + <mo lspace="0" rspace="0">%</mo> + </msub> + <mo lspace="0" rspace="0">%</mo> + </msub> + <munder> + <munder> + <mo lspace="thinmathspace" rspace="thinmathspace">%</mo> + <mo lspace="0" rspace="0">%</mo> + </munder> + <mo lspace="0" rspace="0">%</mo> + </munder> + <mfrac> + <mfrac> + <mo lspace="thinmathspace" rspace="thinmathspace">%</mo> + <mo lspace="0" rspace="0">%</mo> + </mfrac> + <mo lspace="0" rspace="0">%</mo> + </mfrac> + </math> + </p> + + <p> + <math> + <mrow> + <mo lspace="thinmathspace" rspace="thinmathspace">%</mo> + <mo lspace="thinmathspace" rspace="thinmathspace">%</mo> + <mpadded height="+1em"> + <mo lspace="thinmathspace" rspace="thinmathspace">%</mo> + </mpadded> + </mrow> + </math> + <math> + <mpadded height="+1em"> + <mo lspace="thinmathspace" rspace="thinmathspace">%</mo> + <mo lspace="thinmathspace" rspace="thinmathspace">%</mo> + </mpadded> + </math> + <math> + <merror> + <mo lspace="thinmathspace" rspace="thinmathspace">%</mo> + <mo lspace="thinmathspace" rspace="thinmathspace">%</mo> + </merror> + </math> + </p> + + <math display="block"> + <mo lspace="thinmathspace" rspace="thinmathspace">%</mo> + <mo lspace="thinmathspace" rspace="thinmathspace">%</mo> + </math> + + </body> +</html>
new file mode 100644 --- /dev/null +++ b/layout/reftests/mathml/mo-lspace-rspace-2.html @@ -0,0 +1,377 @@ +<!DOCTYPE html> +<html> + <head> + <title>mo-lspace-rspace</title> + <style type="text/css"> + mo,td { + background-color: red; + } + msub, mfrac, msup, msubsup, mmultiscripts, + mover, munder, munderover, mpadded, merror + { + background-color: blue + } + math[display] + { + background-color: blue + } + </style> + </head> + <body> + + <p> + No lspace or rspace added: + </p> + <p> + <math> + <mrow> + <mo>%</mo> + </mrow> + </math> + <math> + <mfrac> + <mo>%</mo> + <mo>%</mo> + </mfrac> + </math> + <math> + <msqrt> + <mo>%</mo> + </msqrt> + </math> + <math> + <mroot> + <mo>%</mo> + <mo>%</mo> + </mroot> + </math> + <math> + <mstyle> + <mo>%</mo> + </mstyle> + </math> + </p> + + <p> + <table> + <tr> + <td> + <math> + <mphantom> + <mo>%</mo> + </mphantom> + </math> + </td> + </tr> + </table> + </p> + + <p> + <math> + <menclose notation="circle"> + <mo>%</mo> + </menclose> + </math> + <math> + <msub> + <mo>%</mo> + <mo>%</mo> + </msub> + </math> + <math> + <msup> + <mo>%</mo> + <mo>%</mo> + </msup> + </math> + <math> + <msubsup> + <mo>%</mo> + <mo>%</mo> + <mo>%</mo> + </msubsup> + </math> + <math> + <munder> + <mo>%</mo> + <mo>%</mo> + </munder> + </math> + <math> + <mover> + <mo>%</mo> + <mo>%</mo> + </mover> + </math> + <math> + <munderover> + <mo>%</mo> + <mo>%</mo> + <mo>%</mo> + </munderover> + </math> + </p> + + <p> + <math> + <mmultiscripts> + <mo>%</mo> + <mo>%</mo> + <mo>%</mo> + <mprescripts/> + <mo>%</mo> + <mo>%</mo> + </mmultiscripts> + </math> + <math> + <mtable> + <mtr> + <mtd> + <mo>%</mo> + </mtd> + </mtr> + </mtable> + </math> + <math> + <mo>%</mo> + </math> + <math> + <msub> + <mrow> + <mo>%</mo> + </mrow> + <mo>%</mo> + </msub> + </math> + </p> + + <p> + <math> + <msub> + <msub> + <mo>%</mo> + <mo>%</mo> + </msub> + <mo>%</mo> + </msub> + </math> + <math> + <munder> + <munder> + <mo>%</mo> + <mo>%</mo> + </munder> + <mo>%</mo> + </munder> + </math> + <math> + <mfrac> + <mfrac> + <mo>%</mo> + <mo>%</mo> + </mfrac> + <mo>%</mo> + </mfrac> + </math> + </p> + <p> + <math> + <menclose notation="circle"> + <mo>%</mo> + </menclose> + <menclose notation="circle"> + <mo>%</mo> + </menclose> + <mroot> + <mo>%</mo> + <mo>%</mo> + </mroot> + </math> + <math> + <mpadded height="+1em"> + <mo>%</mo> + </mpadded> + </math> + <math> + <merror> + <mo>%</mo> + </merror> + </math> + </p> + + <math display="block"> + <mo>%</mo> + </math> + + <p> + lspace and rspace rendered as appropriate + </p> + <p> + <math> + <mrow> + <mo>%</mo> + </mrow> + <mfrac> + <mo>%</mo> + <mo>%</mo> + </mfrac> + <msqrt> + <mo>%</mo> + </msqrt> + <mstyle> + <mo>%</mo> + </mstyle> + </math> + </p> + + <p> + <table> + <tr> + <td> + <math> + <mphantom> + <mo>%</mo> + <mo>%</mo> + </mphantom> + </math> + </td> + </tr> + </table> + </p> + + <p> + <math> + <mfenced> + <mo>%</mo> + </mfenced> + </math> + <math> + <mfenced> + <mo>%</mo> + <mo>%</mo> + </mfenced> + <menclose notation="circle"> + <mo>%</mo> + <mo>%</mo> + </menclose> + <msub> + <mo>%</mo> + <mo>%</mo> + </msub> + <msup> + <mo>%</mo> + <mo>%</mo> + </msup> + <msubsup> + <mo>%</mo> + <mo>%</mo> + <mo>%</mo> + </msubsup> + <munder> + <mo>%</mo> + <mo>%</mo> + </munder> + <mover> + <mo>%</mo> + <mo>%</mo> + </mover> + <munderover> + <mo>%</mo> + <mo>%</mo> + <mo>%</mo> + </munderover> + </math> + </p> + + <p> + <math> + <mmultiscripts> + <mo>%</mo> + <mo>%</mo> + <mo>%</mo> + <mprescripts/> + <mo>%</mo> + <mo>%</mo> + </mmultiscripts> + <mtable> + <mtr> + <mtd> + <mo>%</mo> + <mo>%</mo> + </mtd> + </mtr> + </mtable> + <mo>%</mo> + <msub> + <mrow> + <mo>%</mo> + </mrow> + <mo>%</mo> + </msub> + <msub> + <mrow> + <mo>%</mo> + <mo>%</mo> + </mrow> + <mo>%</mo> + </msub> + </math> + </p> + + <p> + <math> + <msub> + <msub> + <mo>%</mo> + <mo>%</mo> + </msub> + <mo>%</mo> + </msub> + <munder> + <munder> + <mo>%</mo> + <mo>%</mo> + </munder> + <mo>%</mo> + </munder> + <mfrac> + <mfrac> + <mo>%</mo> + <mo>%</mo> + </mfrac> + <mo>%</mo> + </mfrac> + </math> + </p> + + <p> + <math> + <mrow> + <mo>%</mo> + <mo>%</mo> + <mpadded height="+1em"> + <mo>%</mo> + </mpadded> + </mrow> + </math> + <math> + <mpadded height="+1em"> + <mo>%</mo> + <mo>%</mo> + </mpadded> + </math> + <math> + <merror> + <mo>%</mo> + <mo>%</mo> + </merror> + </math> + </p> + + <math display="block"> + <mo>%</mo> + <mo>%</mo> + </math> + + </body> +</html>
new file mode 100644 --- /dev/null +++ b/layout/reftests/mathml/mo-lspace-rspace-3-ref.html @@ -0,0 +1,37 @@ +<html> + <body> + <p> + <math> + <mo id="mo1" LSPACE="3em" rspace="0em">%</mo> + </math> + </p> + <p> + <math> + <mo id="mo2" lspace="0em" rspace="0em">%</mo> + </math> + </p> + <p> + <math> + <mo id="mo3" lspace="3em" rspace="thinmathspace">%</mo> + <mo lspace="thinmathspace" rspace="thinmathspace">%</mo> + </math> + </p> + <p> + <math> + <mo id="mo4" lspace="thinmathspace" rspace="thinmathspace">%</mo> + <mo lspace="thinmathspace" rspace="thinmathspace">%</mo> + </math> + </p> + <p> + <math> + <mo lspace="thinmathspace" rspace="thinmathspace">%</mo> + <mo lspace="thinmathspace" rspace="thinmathspace">%</mo> + </math> + </p> + <p> + <math> + <mo lspace="0em" rspace="0em">%</mo> + </math> + </p> + </body> +</html>
new file mode 100644 --- /dev/null +++ b/layout/reftests/mathml/mo-lspace-rspace-3.html @@ -0,0 +1,56 @@ +<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>
--- a/layout/reftests/mathml/op-dict-1-ref.html +++ b/layout/reftests/mathml/op-dict-1-ref.html @@ -2,12 +2,14 @@ <html> <head> <title>op-dict mo form</title> </head> <body> <math> <mrow> <mo form="prefix">+</mo> + <!-- need a second child to avoid zeroing dictionary spacing --> + <mn>1</mn> </mrow> </math> </body> </html>
--- a/layout/reftests/mathml/op-dict-1.html +++ b/layout/reftests/mathml/op-dict-1.html @@ -2,12 +2,13 @@ <html> <head> <title>op-dict mo form</title> </head> <body> <math> <mrow> <mo form="infix">+</mo> + <mn>1</mn> </mrow> </math> </body> </html>
--- a/layout/reftests/mathml/reftest.list +++ b/layout/reftests/mathml/reftest.list @@ -136,16 +136,18 @@ fails-if(B2G) == mpadded-9.html mpadded- == mtable-columnalign-multi-mtr-dynamic.html mtable-columnalign-multi-ref.html == mtable-columnalign-multi-mtable.html mtable-columnalign-multi-ref.html == mtable-columnalign-multi-mtable-dynamic.html mtable-columnalign-multi-ref.html == maction-selection.html maction-selection-ref.html == maction-dynamic-embellished-op.html maction-dynamic-embellished-op-ref.html skip-if(B2G) == maction-dynamic-1.html maction-dynamic-1-ref.html # bug 773482 == maction-dynamic-2.html maction-dynamic-2-ref.html == mo-lspace-rspace.html mo-lspace-rspace-ref.html +== mo-lspace-rspace-2.html mo-lspace-rspace-2-ref.html +== mo-lspace-rspace-3.html mo-lspace-rspace-3-ref.html == mo-invisibleoperators.html mo-invisibleoperators-ref.html == mo-invisibleoperators-2.html mo-invisibleoperators-2-ref.html skip-if(B2G) == maction-dynamic-3.html maction-dynamic-3-ref.html # bug 773482 == whitespace-trim-1.html whitespace-trim-1-ref.html == whitespace-trim-2.html whitespace-trim-2-ref.html == whitespace-trim-3.html whitespace-trim-3-ref.html fails == whitespace-trim-4.html whitespace-trim-4-ref.html # Bug 787215 == whitespace-trim-5.html whitespace-trim-5-ref.html