Steps to replicate the issue (include links if applicable):
- Set math rendering options to MathML
- Set chrome math font to Cambria Math
- Enter the equation <math>\binom{n}{k/2}</math>
What happens?:
rendered as
What should have happened instead?:
As rendered by LaTeX
With much less horizontal space between brackets and content.
Software version (on Special:Version page; skip for WMF-hosted wikis like Wikipedia):
Other information (browser name/version, screenshots, etc.):
Chrome: 129
Adding borders around the <mo> and <mfrac> elements
in the generate mathml
<mrow data-mjx-texclass="ORD">
<mrow data-mjx-texclass="OPEN">
<mo minsize="2.047em">(</mo>
</mrow>
<mfrac linethickness="0">
<mrow data-mjx-texclass="ORD"><mi>n</mi></mrow>
<mrow data-mjx-texclass="ORD">
<mrow data-mjx-texclass="ORD"><mi>k</mi><mo>/</mo><mn>2</mn></mrow>
</mrow>
</mfrac>
<mrow data-mjx-texclass="CLOSE">
<mo minsize="2.047em">)</mo>
</mrow>
</mrow>Shows the <mo> elements have bounding boxes bigger than the symbol.
There is also a 1px padding around the <mfrac> from the user agent style sheet.
mfrac {
padding-inline-start: 1px;
padding-inline-end: 1px;
}Not sure there is anything we can do about this one. It might be a problem with the font's strechy operators.







