[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)
Tracking
()
| 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 positionFloats 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>
| Assignee | ||
Updated•1 month ago
|
| Assignee | ||
Updated•1 month ago
|
| Assignee | ||
Updated•25 days ago
|
| Assignee | ||
Updated•25 days ago
|
| Assignee | ||
Updated•24 days ago
|
| Assignee | ||
Updated•24 days ago
|
| Assignee | ||
Updated•23 days ago
|
| Assignee | ||
Comment 1•23 days ago
|
||
Pushed to try (stability) https://treeherder.mozilla.org/jobs?repo=try&landoInstance=lando-prod-2025&landoCommitID=115996
| Assignee | ||
Comment 2•22 days ago
|
||
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
- /css/CSS2/floats/float-root.html [wpt.fyi]:
FAIL - /css/CSS2/floats/floats-rule3-outside-left-002.xht [wpt.fyi]:
FAIL - /css/CSS2/floats/floats-rule3-outside-right-002.xht [wpt.fyi]:
FAIL - /css/CSS2/floats/floats-rule7-outside-left-001.xht [wpt.fyi]:
FAIL - /css/CSS2/floats/floats-rule7-outside-right-001.xht [wpt.fyi]:
FAIL - /css/CSS2/floats/floats-wrap-bfc-with-margin-001a.tentative.html [wpt.fyi]:
FAIL - /css/CSS2/floats/floats-wrap-bfc-with-margin-006.tentative.html [wpt.fyi]:
FAIL - /css/CSS2/floats/floats-wrap-bfc-with-margin-007.tentative.html [wpt.fyi]:
FAIL - /css/CSS2/floats/floats-wrap-bfc-with-margin-008.tentative.html [wpt.fyi]:
FAIL - /css/CSS2/floats/floats-wrap-bfc-with-margin-009.tentative.html [wpt.fyi]:
FAIL - /css/CSS2/floats/floats-zero-height-wrap-002.xht [wpt.fyi]:
FAIL - /css/CSS2/floats/float-in-block-in-inline-position-001.html [wpt.fyi]
- A line after a self collapsing block containing a float avoids it at the block's position (nested):
FAIL(Chrome:FAIL, Safari:FAIL) - A line after a bordered block containing a float avoids it at the block's position (nested):
FAIL(Chrome:FAIL, Safari:FAIL) - A line after a self collapsing block containing a float avoids it at the block's position (sibling):
FAIL(Chrome:FAIL, Safari:FAIL) - A line after a bordered block containing a float avoids it at the block's position (sibling):
FAIL(Chrome:FAIL, Safari:FAIL)
- A line after a self collapsing block containing a float avoids it at the block's position (nested):
Comment 4•18 days ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/3467a0a1318f
https://hg.mozilla.org/mozilla-central/rev/f1fb21beed4d
Description
•