github web-platform-tests/wpt merge_pr_47387

latest releases: merge_pr_49470, epochs/three_hourly/2024-12-03_06H, epochs/six_hourly/2024-12-03_06H...
5 months ago

Extend and tweak MathML padding/border/margin tests.

This patch adds reftests to verify how padding/border/margin values on
an msqrt, mroot and mfrac elements affect the offsets of their painted
bars and radicals.

In addition, it includes a couple of tweaks:

  • padding-border-margin-003.html: Wrap the stretchy op in an mrow to
    work around Firefox's bug 236963.

  • margin-003.html: Use backstick characters for template literals.

  • border-002, padding-002, margin-003.html: These tests rely on
    compareSpaceWithAndWithoutStyle. Use <math display="block"> to work
    around Firefox's bug 1908913. To get more reliable sizes, force empty
    mrow and token elements to contain some text and use ahem fonts. Use
    mtext instead of mi so they are not transformed to unicode italic.
    Finally, relax a bit the error tolerance.

  • mo-lspace-rspace-4: To make the test more reliable, use ahem fonts.

Differential Revision: https://phabricator.services.mozilla.com/D216684

bugzilla-url: https://bugzilla.mozilla.org/show_bug.cgi?id=1908069
gecko-commit: 0edf40d77053e5493873070435110d47d05fd994
gecko-reviewers: emilio

Don't miss a new wpt release

NewReleases is sending notifications on new releases.