[wpt-sync] Sync PR 64189 - WebKit export of https://bugs.webkit.org/show_bug.cgi?id=321143
Categories
(Core :: Layout, task, P4)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox162 | --- | fixed |
People
(Reporter: wpt-sync, Unassigned)
References
(Blocks 1 open bug, )
Details
(Whiteboard: [wptsync downstream])
Attachments
(1 file)
|
158.18 KB,
text/plain
|
Details |
Sync web-platform-tests PR 64189 into mozilla-central (this bug is closed when the sync is complete).
PR: https://github.com/web-platform-tests/wpt/pull/64189
Details from upstream follow.
Alan Baradlay <zalan@apple.com> wrote:
WebKit export of https://bugs.webkit.org/show_bug.cgi?id=321143
WebKit export from bug: [<!---->IFC]<!----> Inline box with cloned decoration generates an extra line between two block level boxes
<pre>
[block-in-inline] Inline box with cloned decoration generates an extra line between two block level boxes<span style="-webkit-box-decoration-break: clone; border: 20px solid magenta">
a
<div>block</div>
<span></span>
<div>block</div>
c
</span>The two block level boxes should be right next to each other, the way they are in
Blink. Instead a 20px tall line with a 40px wide magenta border box showed up
between them, for the empty inline box.
The test case is adapted from Oriol Brufau's reduction in
<a href="https://github.com/w3c/csswg-drafts/issues/14104">https://github.com/w3c/csswg-drafts/issues/14104</a>Line::initialize hands a line spanning inline box run the width of its cloned
decoration, so isContentfulOrHasDecoration answered "contentful" on its very first
check (run.logicalWidth()) and the line got a full strut. The fragment's display box
was then built from the border box, so all four cloned edges painted.Cloned decoration wraps the content of a box fragment, so it can't make a line
contentful by itself. A line spanning inline box start no longer does, and on a line
with no inline content its display box uses the content box -the rule block lines
already followed. This matches Blink.WebKit-Bug: <a href="https://bugs.webkit.org/show_bug.cgi?id=321143">https://bugs.webkit.org/show_bug.cgi?id=321143</a>
WebKit-Canonical-Link: <a href="https://commits.webkit.org/318718@main">https://commits.webkit.org/318718@main</a>
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
</pre>
| Assignee | ||
Updated•29 days ago
|
| Assignee | ||
Comment 1•29 days ago
|
||
Pushed to try (stability) https://treeherder.mozilla.org/jobs?repo=try&landoInstance=lando-prod-2025&landoCommitID=111319
| Assignee | ||
Comment 2•23 days ago
|
||
CI Results
Ran 11 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI
Total 1280 tests and 17 subtests
Status Summary
Firefox
OK : 1[GitHub] 48[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: 1[GitHub] 117[Gecko-linux2204-64-wayland-debug, Gecko-linux2204-64-wayland-opt] 403[Gecko-windows11-32-25h2-debug, Gecko-windows11-32-25h2-opt] 962[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] 1018[Gecko-windows11-64-25h2-debug] 1019[Gecko-windows11-64-25h2-opt] 1021[Gecko-linux2404-64-debug, Gecko-linux2404-64-opt]
FAIL: 4[GitHub] 431[Gecko-windows11-32-25h2-debug, Gecko-windows11-32-25h2-opt] 923[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] 928[Gecko-linux2404-64-debug, Gecko-linux2404-64-opt] 930[Gecko-windows11-64-25h2-opt] 931[Gecko-windows11-64-25h2-debug]
Chrome
OK : 1
PASS: 4
FAIL: 1
Safari
OK : 1
PASS: 4
FAIL: 1
Links
Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base
Details
Firefox-only Failures
- /css/css-break/box-decoration-break-clone-block-in-inline-001.html [wpt.fyi]
- An empty inline box between two block level boxes does not add a line:
FAIL - Two block level boxes with only an empty inline box in-between are adjacent:
FAIL - The empty inline box between the two block level boxes has no size:
FAIL
- An empty inline box between two block level boxes does not add a line:
(See attachment for full changes)
Comment 4•15 days ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/df152caeedf3
https://hg.mozilla.org/mozilla-central/rev/fb48df336911
Description
•