Open Bug 1938218 Opened 2 months ago Updated 2 months ago

MathML `mo` content-box (as visualized by the border/background painted area) shrinkwraps the height of the glyphs in WebKit/Chromium, vs. shrinkwraps the line height (ending up taller) in Firefox

Categories

(Core :: MathML, defect)

defect

Tracking

()

People

(Reporter: dholbert, Unassigned)

Details

Attachments

(1 file)

Attached file testcase 1

STR:

  1. Load attached testcase.

ACTUAL RESULTS:
All of the boxes are the same height.

EXPECTED RESULTS:
All of the boxes should shrinkwrap the height of the text inside of them.

I don't know MathML well enough to have an authoritative expectation here; I'm basing EXPECTED RESULTS off of Chromium/WebKit behavior here.

I noticed this at https://www.igalia.com/2024/12/17/MathML-2024.html - there's a figure labeled "MathML rendered natively and styled as text with CSS" at the top of that blog-post, which has some subtle animations, and one of those animations has a background that rapidly moves behind the various mo elements. In Firefox, that animation looks a bit awkward because the moving-background protrudes above and below the actual text, and that's due to the behavior that's captured in the reduced testcase here.

Summary: MathML `mo` border/background area shrinkwraps the height of the glyphs in WebKit/Chromium, vs. shrinkwraps the line height (ending up taller) in Firefox → MathML `mo` content-box (as visualized by the border/background painted area) shrinkwraps the height of the glyphs in WebKit/Chromium, vs. shrinkwraps the line height (ending up taller) in Firefox
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: