Closed Bug 2078502 Opened 1 month ago Closed 1 month ago

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

Categories

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

task

Tracking

()

RESOLVED FIXED
160 Branch
Tracking Status
firefox160 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

(Blocks 1 open bug, )

Details

(Whiteboard: [wptsync downstream])

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

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

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

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

WebKit export from bug: shape-margin above 65535px on an image shape-outside produces a much smaller float area

<pre>
shape-margin above 65535px on an image shape-outside produces a much smaller float area

MarginIntervalGenerator computed radius * radius as unsigned, which
overflows when the shape-margin is above 65535px. For a radius of
65536px the square wraps to 0, so the margin on each row of the
shape itself became 0. Larger radii wrapped to other small values.
A float with a huge shape-margin then had a float area far smaller
than its margin box, and text wrapped into the space the margin
should have covered.

This patch does the squaring in 64 bits.

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

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

Try push failed to land: Lando job 100722 for the try push is FAILED:
Unexpected error while fetching repo from try.
hg error in cmd: hg pull https://hg.mozilla.org/mozilla-unified: pulling from https://hg.mozilla.org/mozilla-unified

abort: HTTP Error 503: Service Unavailable

CI Results

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

Total 1 tests and 5 subtests

Status Summary

Firefox

OK : 1
FAIL: 5

Chrome

OK : 1
PASS: 2
FAIL: 3

Safari

OK : 1
PASS: 2
FAIL: 3

Links

GitHub PR Head
GitHub PR Base

Details

Firefox-only Failures

New Tests That Don't Pass

  • /css/css-shapes/shape-outside/shape-image/shape-image-030.html [wpt.fyi]
    • shape-margin: 60000px covers the whole float margin box: FAIL (Chrome: PASS, Safari: PASS)
    • shape-margin: 65535px covers the whole float margin box: FAIL (Chrome: PASS, Safari: PASS)
    • shape-margin: 65536px covers the whole float margin box: FAIL (Chrome: FAIL, Safari: FAIL)
    • shape-margin: 65537px covers the whole float margin box: FAIL (Chrome: FAIL, Safari: FAIL)
    • shape-margin: 70000px covers the whole float margin box: FAIL (Chrome: FAIL, Safari: FAIL)
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.