BaseParsing::alignAt()/matrix() express a row's spacing as padding-bottom CSS on <mtd> (T380654), chosen because the native rowspacing MathML attribute isn't part of MathML Core and so is ignored by browsers' native MathML rendering. But MathJax's own SVG output computes table/delimiter geometry entirely from its internal metrics and ignores inline style — confirmed empirically: MathJax.mathml2svg() produces byte-identical SVG for padding-bottom: 6pt vs 200pt, but responds correctly to the native rowspacing attribute (5.0ex → 24.0ex for 0.5ex vs 20ex). This is why a cases/pmatrix brace looks correctly sized in Mathoid (server-side, MathJax-node) and native MathML, but wrong in client-side MathJax.
Description
Description
Details
Details
Related Changes in Gerrit:
| Subject | Author | Repo | Branch | Lines +/- | |
|---|---|---|---|---|---|
| ext.math.mathjax: Restore rowspacing for MathJax | Physikerwelt | mediawiki/extensions/Math | master | +57 -0 |
| Status | Subtype | Assigned | Task | ||
|---|---|---|---|---|---|
| Stalled | None | T324931 Clean up open RESTBase related tickets | |||
| Open | None | T262315 <CORE TECHNOLOGY> API Migration & RESTBase Sunset | |||
| Open | None | T380348 [EPIC] Re-route services through RESTGateway and remove code from RESTBase codebase | |||
| Open | Feature | JeanCASPAR | T397585 Provide a macro for putting arbitrary Unicode content in <mo> tag | ||
| Open | Physikerwelt | T271001 Transition to client-side MathJax SVG rendering as default | |||
| Open | BUG REPORT | Physikerwelt | T375238 Client-side MathJax rendering problems | ||
| Open | None | T375318 "MathML only" mode formatting bugs (mathmode=native) | |||
| Resolved | BUG REPORT | Physikerwelt | T375295 \begin{align} with font sizes specified show font size annotation [6pt] in MathML mode | ||
| Resolved | Physikerwelt | T380654 vertical space between multline equations is ignored | |||
| Resolved | Physikerwelt | T438441 Row spacing `\\[20pt]` is invisible in client-side MathJax |
Event Timeline
Comment Actions
Change #1343006 had a related patch set uploaded (by Physikerwelt; author: Physikerwelt):
[mediawiki/extensions/Math@master] ext.math.mathjax: Restore rowspacing for MathJax
Comment Actions
Make sure that if "server-side SVG" and "client-side SVG" are rendered side by side, the appearance is the same. For some reason the two versions in your "after" screengrab seem to have different font sizes, so it's hard to tell.
Comment Actions
Change #1343006 merged by jenkins-bot:
[mediawiki/extensions/Math@master] ext.math.mathjax: Restore rowspacing for MathJax


