Closed Bug 2086892 Opened 1 month ago Closed 23 days ago

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

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 64113 into mozilla-central (this bug is closed when the sync is complete).

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

Alan Baradlay <zalan@apple.com> wrote:

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

WebKit export from bug: [<!---->anon-<!---->block-<!---->removal]<!----> Adjoining margins do not collapse when the container'<!---->s first child is a float or an out-<!---->of-<!---->flow box

<pre>
[anon-block-removal] Adjoining margins do not collapse when the container's first child is a float or an out-of-flow box

RenderTreeBuilder::Block::attach decides childrenInline from the first child but skips that when the child is
floating or out-of-flow, so a leading float or out-of-flow box leaves the parent non-empty and the first in-flow
child never reaches the branch that would turn the flag off. A container whose in-flow children are all block
level then runs an inline formatting context, which leaves adjoining margins between those boxes uncollapsed,
moves out-of-flow static positions and changes what align-content aligns. Ask whether an in-flow child has
arrived rather than whether the box is empty, skipping floats, out-of-flow boxes and an excluded marker.

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

Component: web-platform-tests → CSS Parsing and Computation
Product: Testing → Core
Whiteboard: [wptsync downstream] → [wptsync downstream error]
Whiteboard: [wptsync downstream error] → [wptsync downstream]

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: 23 days ago
Resolution: --- → FIXED
Target Milestone: --- → 162 Branch
You need to log in before you can comment on or make changes to this bug.