The math work's spec, "measure the rendered display width
against the text width and report when it exceeds it".
Line breaking inside math is explicitly Out — TeX barely does it either — so
a display that overruns the measure must produce a diagnostic rather than
running into the margin, and the author breaks it themselves. Only layout
knows either number, which is why this is a type here and a function there.
Returns null when the display fits.
The math work's spec, "measure the rendered display width against the text width and report when it exceeds it".
Line breaking inside math is explicitly Out — TeX barely does it either — so a display that overruns the measure must produce a diagnostic rather than running into the margin, and the author breaks it themselves. Only layout knows either number, which is why this is a type here and a function there. Returns null when the display fits.