Closed
Bug 585347
Opened 14 years ago
Closed 12 years ago
Direct children of the <math/> element do not stretch
Categories
(Core :: MathML, defect)
Core
MathML
Tracking
()
RESOLVED
DUPLICATE
of bug 236963
People
(Reporter: fredw, Unassigned)
References
(Blocks 1 open bug)
Details
Attachments
(1 file)
(deleted),
application/xhtml+xml
|
Details |
The testcase demonstrates the problem.
This bug makes the embStretch1 test fail:
http://www.w3.org/Math/testsuite/build/main/Topics/EmbellishedOp/embStretch1-full.xhtml
Reporter | ||
Comment 1•14 years ago
|
||
Reporter | ||
Comment 2•14 years ago
|
||
First experiments to find where the problem comes from: the Stretch is called on the mo but the size passed seems incorrect.
The size taken for the math element is given by aDesiredSize.mBoundingMetrics here:
http://mxr.mozilla.org/mozilla-central/source/layout/mathml/nsMathMLContainerFrame.cpp#541
I don't know if it is related to bug 219873...
Reporter | ||
Comment 3•14 years ago
|
||
BTW, the bug can also be seen on the Webkit MathML Demo page (section Operator Stretching):
http://www.webkit.org/demos/mathml/MathMLDemo.xhtml
Comment 4•14 years ago
|
||
Only nsMathMLContainerFrame knows (through GetPrefferedStretchSize) what size to use in stretching its children.
Possible solutions might be:
1) Reimplementing nsMathMLmathBlockFrame using nsMathMLContainerFrame.
The line-breaking provided by nsBlockFrame would typically not be very
good anyway.
2) Or insert an nsMathMLmrowFrame under the nsMathMLmathBlockFrame. Perhaps
this could be done with an anonymous mrow element, though don't know what
consequences that might have.
Reporter | ||
Comment 5•14 years ago
|
||
I guess your suggestions apply to nsMathMLmathInlineFrame too?
In both cases, it seems that it is going to break the line-breaking support for the direct children of the <math/> element...
Comment 6•14 years ago
|
||
Yes, and yes. Have you noticed line-breaking working effectively, anywhere?
Reporter | ||
Comment 7•14 years ago
|
||
(In reply to comment #6)
> Yes, and yes. Have you noticed line-breaking working effectively, anywhere?
If you mean whether line-breaking is implemented in other UAs, I don't know. However, I think our line-breaking implementation - even limited - is important for many pages that contain several inline formulas inside paragraphs of text. At least, I find line-breaking more important than this bug, which can be worked-around by users with the insertions of <mrow/> in their MathML sources.
Reporter | ||
Updated•12 years ago
|
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•