Page MenuHomePhabricator

Not enough space before \mathbin{\vert} in Clientside SVG mode
Open, MediumPublicBUG REPORT

Assigned To
None
Authored By
SalixAlba
Sep 5 2026, 11:59 AM
Project Tags
Referenced Files
F102964825: image.png
Sep 14 2026, 11:57 PM
F102963689: image.png
Sep 14 2026, 11:51 PM
F101900311: image.png
Sep 5 2026, 11:59 AM
F101900287: image.png
Sep 5 2026, 11:59 AM

Description

Steps to replicate the issue (include links if applicable):

  • Set math rendering mode to client side svg
  • Enter formula a \mathop{\vert} c

What happens?:

Renders as

image.png (432×84 px, 8 KB)

What should have happened instead?:

Renders with more space before the operator

image.png (548×94 px, 9 KB)

Software version (on Special:Version page; skip for WMF-hosted wikis like Wikipedia):

Other information (browser name/version, screenshots, etc.):

Related to T437135

Also affects

  • a \operatorname{\vert} c
  • a \mathop{\vert} c
  • a \mathrel{\vert} c

Examples at https://www.mediawiki.org/wiki/Extension:Math/Native_MathML/Reported_Cases#New_cases_since_Aug_2026

Event Timeline

It looks like you get different behaviour depending on what is inside the { }, in think its inheriting behaviour from the contents.

This comment was removed by SalixAlba.

This might be a font issue. With Asana Math both MathML and Client-SVG render correctly.

image.png (458×200 px, 20 KB)

The behavior of an explicit command like mathop, mathrel, etc. should not depend on the font at all. We should be turning whatever is contained in such commands into some kind of symbolic unit, and then setting the space around that based on which command it was.

If changing the font makes a difference here, that is an indication of a more significant underlying problem with the way LaTeX is being interpreted.

Also, judging by the screenshot the behavior with Asana Math is also not "correct", but just less obviously wrong.

Krinkle triaged this task as Medium priority.Sep 16 2026, 3:09 PM