Closed Bug 2086763 Opened 1 month ago Closed 17 days ago

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

Categories

(Core :: CSS Parsing and Computation, task, P4)

task

Tracking

()

RESOLVED FIXED
162 Branch
Tracking Status
firefox162 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

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

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

Alan Baradlay <zalan@apple.com> wrote:

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

WebKit export from bug: [<!---->block-<!---->in-<!---->inline]<!----> Margin does not collapse after a self collapsing block level box on a line

<pre>
[block-in-inline] Margin does not collapse after a self collapsing block level box on a line

A block level box on a line is handed to block layout at the line's top, and block layout applies the pending
margin from the container's own position, so LineBuilder::handleBlockContent takes that margin back off the line
top first - but only when the margin was no longer at the before side of the block, while the line was advanced by
it whenever the margin could not collapse out through the root's before edge. With a border or padding on the
root the two disagree: the line top already holds the margin and block layout adds it again, so
<span><div style="margin-top:100px"></div></span><div> puts the second block 200px down instead of 100px. Make
the rollback test the condition the advance already uses.

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

Component: web-platform-tests → CSS Parsing and Computation
Product: Testing → Core

CI Results

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

Total 816 tests and 2 subtests

Status Summary

Firefox

OK : 24
PASS: 1[GitHub] 2[Gecko-linux2204-64-wayland-debug, Gecko-linux2204-64-wayland-opt] 94[Gecko-windows11-32-25h2-debug, Gecko-windows11-32-25h2-opt] 874[Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt] 876[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] 879[Gecko-linux2404-64-debug, Gecko-linux2404-64-opt]
FAIL: 26[Gecko-windows11-32-25h2-debug, Gecko-windows11-32-25h2-opt] 31[Gecko-linux2404-64-debug, Gecko-linux2404-64-opt] 34[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] 36[Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt]

Chrome

PASS: 1

Safari

PASS: 1

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Details

New Tests That Don't Pass

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