Closed Bug 2086772 Opened 29 days ago Closed 15 days ago

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

Categories

(Core :: Layout, task, P4)

task

Tracking

()

RESOLVED FIXED
162 Branch
Tracking Status
firefox162 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

(Blocks 1 open bug, )

Details

(Whiteboard: [wptsync downstream])

Attachments

(1 file)

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>

Component: web-platform-tests → Layout
Product: Testing → Core
Attached file Notable wpt changes —

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

(See attachment for full changes)

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

Attachment

General

Created:
Updated:
Size: