mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-16 22:04:36 +00:00
Bug 669719 - support the displaystyle attribute on the <math/> element. r=roc
This commit is contained in:
parent
d75dd15408
commit
187cfbc344
@ -219,6 +219,7 @@ nsMathMLFrame::GetPresentationDataFrom(nsIFrame* aFrame,
|
||||
if (display->mDisplay == NS_STYLE_DISPLAY_BLOCK) {
|
||||
aPresentationData.flags |= NS_MATHML_DISPLAYSTYLE;
|
||||
}
|
||||
FindAttrDisplaystyle(content, aPresentationData);
|
||||
aPresentationData.mstyle = frame->GetFirstContinuation();
|
||||
break;
|
||||
}
|
||||
|
13
layout/reftests/mathml/math-display-ref.html
Normal file
13
layout/reftests/mathml/math-display-ref.html
Normal file
@ -0,0 +1,13 @@
|
||||
<html>
|
||||
<body>
|
||||
<math>
|
||||
<mstyle displaystyle="true">
|
||||
<munderover>
|
||||
<mo>∑</mo>
|
||||
<mi>b</mi>
|
||||
<mi>c</mi>
|
||||
</munderover>
|
||||
</mstyle>
|
||||
</math>
|
||||
</body>
|
||||
</html>
|
11
layout/reftests/mathml/math-display.html
Normal file
11
layout/reftests/mathml/math-display.html
Normal file
@ -0,0 +1,11 @@
|
||||
<html>
|
||||
<body>
|
||||
<math displaystyle="true">
|
||||
<munderover>
|
||||
<mo>∑</mo>
|
||||
<mi>b</mi>
|
||||
<mi>c</mi>
|
||||
</munderover>
|
||||
</math>
|
||||
</body>
|
||||
</html>
|
@ -67,6 +67,7 @@ fails == mstyle-5.xhtml mstyle-5-ref.xhtml # See bug 569125#c29
|
||||
== mpadded-5.html mpadded-5-ref.html
|
||||
== mpadded-1-2.html mpadded-1-2-ref.html
|
||||
== mpadded-6.html mpadded-6-ref.html
|
||||
== math-display.html math-display-ref.html
|
||||
== mfrac-linethickness-1.xhtml mfrac-linethickness-1-ref.xhtml
|
||||
== mathml-negativespace.html mathml-negativespace-ref.html
|
||||
!= link-1.xhtml link-ref.xhtml
|
||||
|
Loading…
x
Reference in New Issue
Block a user