Open Bug 1789983 Opened 2 years ago Updated 2 years ago

Automatic spacing not applied for <math> tag with a single operator

Categories

(Core :: MathML, defect)

defect

Tracking

()

People

(Reporter: fredw, Assigned: fredw)

References

(Blocks 1 open bug)

Details

Attachments

(2 files)

Attached file Testcase

See attached test case. Specifying no space or large space with lspace/rspace attributes work as expected. However, the automatic spacing of "*" does not apply when the <math> contains only a single child which is an (embellished) operator.

Note that the MathML Core spec is clear the spacing should always apply for the <math>:

"Set add-space to true if the box corresponds to a <math> element or is not an embellished operator; and to false otherwise."

Chromium and WebKit properly adds the automatic spacing in this testcase.

I tried adding a simple GetParent()->>GetContent()->NodeInfo()->NameAtom() == nsGkAtoms::math here:

https://searchfox.org/mozilla-central/rev/31368c7795f44b7a15531d6c5e52dc97f82cf2d5/layout/mathml/nsMathMLContainerFrame.cpp#392

But that does not work. Probably there is something more involved, since it is only failing when lspace/rspace are not explicitly specified.

Attached image Screenshot in firefox

Here is a screenshot in Firefox. Note that automatic spacing is zero in the first case, but properly computed from the dictionary in the later case.

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: