Closed Bug 832800 Opened 12 years ago Closed 11 years ago

nested <mfrac> changes size when mathbackground attribute dynamically added to adjacent <mo>

Categories

(Core :: MathML, defect)

18 Branch
x86_64
Windows 7
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla29

People

(Reporter: patrboch, Assigned: fredw, NeedInfo)

References

Details

(Whiteboard: [good first verify])

Attachments

(1 file)

Attached file testcase.html (deleted) —
User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:18.0) Gecko/20100101 Firefox/18.0 Build ID: 20130116073211 Steps to reproduce: 1. <mo> and <mfrac> in the nominator of the outer <mfrac> 2. Set dynamically mathbackground attribute to <mo> (see the attached testcase) <math> <mstyle displaystyle="true"> <mfrac> <mrow> <mi>X</mi> <mo>+</mo> <mfrac> <mrow> <mi>X</mi> </mrow> <mrow> <mi>X</mi> </mrow> </mfrac> </mrow> <mrow> <mi>X</mi> </mrow> </mfrac> </mstyle> </math> Actual results: The size of the inner <mfrac> changes. Expected results: The size should not change.
Setting mathbackground to any other element in this code does not cause the problem.
Attachment #704371 - Attachment mime type: text/plain → text/html
Thanks for the report. That seems to be yet another issue due to mstyle. Perhaps mapping displaystyle to a CSS property would help here. In general I wrote https://wiki.mozilla.org/MathML:mstyle and suggested the MathML REC to actually keep only a few relevant attributes. displaystyle is one of them.
Blocks: 744783
Status: UNCONFIRMED → NEW
Ever confirmed: true
Depends on: 838506
Fixed per bug 838506.
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Assignee: nobody → fred.wang
Target Milestone: --- → mozilla29
Patrick, could you please verify that this is fixed for you in Firefox 29?
Flags: needinfo?(patrboch)
Whiteboard: [good first verify]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: