Bug 878396 - Fix a regression with mspace@mathbackground. r=karlt

This commit is contained in:
Frédéric Wang 2013-06-04 08:22:51 -04:00
parent 621bade635
commit 4a644df437
4 changed files with 47 additions and 1 deletions

View File

@ -226,7 +226,7 @@ nsMathMLElement::IsAttributeMapped(const nsIAtom* aAttribute) const
nsIAtom* tag = Tag();
if (tag == nsGkAtoms::ms_ || tag == nsGkAtoms::mi_ ||
tag == nsGkAtoms::mn_ || tag == nsGkAtoms::mo_ ||
tag == nsGkAtoms::mtext_)
tag == nsGkAtoms::mtext_ || tag == nsGkAtoms::mspace_)
return FindAttributeDependence(aAttribute, tokenMap);
if (tag == nsGkAtoms::mstyle_ ||
tag == nsGkAtoms::math)

View File

@ -0,0 +1,27 @@
<!DOCTYPE html>
<html>
<head>
<title>mspace</title>
</head>
<body>
<div style="position: absolute;
top: 0; left: 0;
width: 50px; height: 6em;
background: red;"></div>
<div style="position: absolute;
top: 2em; left: 50px;
width: 40px; height: 3em;
background: green;"></div>
<div style="position: absolute;
top: 1em; left: 90px;
width: 30px; height: 3em;
background: blue;"></div>
</body>
</html>

View File

@ -0,0 +1,18 @@
<!DOCTYPE html>
<html>
<head>
<title>mspace</title>
</head>
<body>
<math style="position: absolute; top: 0; left: 0; margin: 0; padding: 0;">
<mspace width="50px" height="3em" depth="3em" mathbackground="red"/>
<mspace width="40px" height="1em" depth="2em" mathbackground="green"/>
<mspace width="30px" height="2em" depth="1em" mathbackground="blue"/>
</math>
</body>
</html>

View File

@ -84,6 +84,7 @@ fails == mstyle-5.xhtml mstyle-5-ref.xhtml # Bug 787215
!= 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
== mpadded-3.html mpadded-3-ref.html