Closed Bug 2087232 Opened 1 month ago Closed 18 days ago

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

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

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

Alan Baradlay <zalan@apple.com> wrote:

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

WebKit export from bug: [<!---->block-<!---->in-<!---->inline]<!----> Float inside a block nested in an inline box intrudes at the wrong position

<pre>
[block-in-inline] Float inside a block nested in an inline box intrudes at the wrong position

Floats coming out of a block level box on a line were handed to the inline formatting context at the
line's top left, but the block's own border box does not sit there: setTopLeft() a few lines above puts it
at { marginStart, borderBoxTop }, where borderBoxTop is its collapsed margin-before. Floats therefore
landed that far above where they paint, and lines below the block failed to avoid them.

LineBuilder deliberately rolls the line top back by the pending margin before calling in, which is why the
offset has to be re-added here rather than being absent from both sides.

This reproduces in the default configuration, since block-in-inline ships: with the block nested in an
inline box the probe below the float went to offsetTop -1 and offsetLeft 0, instead of 99 and 34.

WebKit-Bug: <a href="https://bugs.webkit.org/show_bug.cgi?id=321086">https://bugs.webkit.org/show_bug.cgi?id=321086</a>
WebKit-Canonical-Link: <a href="https://commits.webkit.org/318678@main">https://commits.webkit.org/318678@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]
Whiteboard: [wptsync downstream] → [wptsync downstream error]
Whiteboard: [wptsync downstream error] → [wptsync downstream]
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 149 tests and 1 subtests

Status Summary

Firefox

OK : 1[GitHub] 18[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: 2[GitHub] 20[Gecko-linux2204-64-wayland-debug, Gecko-linux2204-64-wayland-opt] 118[Gecko-windows11-32-25h2-debug, Gecko-windows11-32-25h2-opt] 218[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: 4[Gecko-windows11-32-25h2-debug, Gecko-windows11-32-25h2-opt, GitHub] 15[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]

Chrome

OK : 1
PASS: 2
FAIL: 4

Safari

OK : 1
PASS: 2
FAIL: 4

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Details

New Tests That Don't Pass

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