Closed Bug 2078529 Opened 1 month ago Closed 1 month ago

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

Categories

(Core :: Layout: Floats, task, P4)

task

Tracking

()

RESOLVED FIXED
160 Branch
Tracking Status
firefox160 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

Sync web-platform-tests PR 63293 into mozilla-central (this bug is closed when the sync is complete).

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

Ahmad Saleem <ahmad.saleem792+github@gmail.com> wrote:

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

WebKit export from bug: shape-outside image drops an above-threshold run that starts in the last column

<pre>
shape-outside image drops an above-threshold run that starts in the last column

This patch aligns WebKit with Gecko / Firefox and Blink / Chromium.

LayoutShape::createRasterShapeImpl() scans each row of the shape image and
builds intervals from runs of pixels whose alpha is above the threshold. A
run was only emitted from the else-if branch, which also handled the last
column. When the run started on the last column, the first branch opened
it and the else-if never ran, so the loop ended without emitting the run.
As a result, a 1px wide shape image had an empty shape, and a single
above-threshold pixel in the last column was ignored, in both horizontal
and vertical writing modes.

Fix this by emitting any run that is still open after the row loop ends,
and remove the last-column special case from the else-if.

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

Component: web-platform-tests → Layout: Floats
Product: Testing → Core

CI Results

Ran 9 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI

Total 22 tests

Status Summary

Firefox

OK : 1[GitHub] 5[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: 3[GitHub] 6[Gecko-windows11-32-25h2-debug, Gecko-windows11-32-25h2-opt] 23[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: 3

Safari

OK : 1
FAIL: 3

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

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