Closed Bug 2078972 Opened 1 month ago Closed 1 month ago

[wpt-sync] Sync PR 63307 - WebKit export of https://bugs.webkit.org/show_bug.cgi?id=326377

Categories

(Core :: MathML, task, P4)

task

Tracking

()

RESOLVED FIXED
160 Branch
Tracking Status
firefox160 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

Sync web-platform-tests PR 63307 into mozilla-central (this bug is closed when the sync is complete).

PR: https://github.com/web-platform-tests/wpt/pull/63307
Details from upstream follow.

Ahmad Saleem <ahmad.saleem792+github@gmail.com> wrote:

WebKit export of https://bugs.webkit.org/show_bug.cgi?id=326377

WebKit export from bug: [MathML] Empty <mpadded> baseline ignores border-top and padding-top

<pre>
[MathML] Empty <mpadded> baseline ignores border-top and padding-top

This patch aligns WebKit with Gecko / Firefox and Blink / Chromium.

When <mpadded> has no in-flow children, RenderMathMLPadded::firstLineBaseline()
returned mpaddedHeight(0) without adding borderAndPaddingBefore(). An empty
<mpadded> with border-top or padding-top was therefore aligned too low in its
row. RenderMathMLSpace::firstLineBaseline() already adds this offset.

The non-empty case is already correct because the child's logicalTop()
includes the shift applied by adjustLayoutForBorderAndPadding().

WebKit-Bug: <a href="https://bugs.webkit.org/show_bug.cgi?id=326377">https://bugs.webkit.org/show_bug.cgi?id=326377</a>
WebKit-Canonical-Link: <a href="https://commits.webkit.org/322826@main">https://commits.webkit.org/322826@main</a>
</pre>

Component: web-platform-tests → MathML
Product: Testing → Core

CI Results

Ran 9 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI

Total 15 tests and 3 subtests

Status Summary

Firefox

OK : 1[GitHub] 8[Gecko-android-em-14-x86_64-debug-geckoview, Gecko-android-em-14-x86_64-lite-opt-geckoview, Gecko-android-em-14-x86_64-opt-geckoview, Gecko-linux2404-64-debug, Gecko-linux2404-64-opt, Gecko-windows11-32-25h2-debug, Gecko-windows11-32-25h2-opt, Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt]
PASS: 3[GitHub] 213[Gecko-windows11-32-25h2-debug, Gecko-windows11-32-25h2-opt] 220[Gecko-android-em-14-x86_64-debug-geckoview, Gecko-android-em-14-x86_64-lite-opt-geckoview, Gecko-android-em-14-x86_64-opt-geckoview, Gecko-linux2404-64-debug, Gecko-linux2404-64-opt, Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt]
FAIL: 3

Chrome

OK : 1
PASS: 3

Safari

OK : 1
PASS: 1
FAIL: 2

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Details

New Tests That Don't Pass

Status: NEW → RESOLVED
Closed: 1 month ago
Resolution: --- → FIXED
Target Milestone: --- → 160 Branch
You need to log in before you can comment on or make changes to this bug.