Closed Bug 1971783 Opened 12 days ago Closed 5 hours ago

[wpt-sync] Sync PR 53034 - layout: Floor free space by 0 in solve_inline_margins_avoiding_floats()

Categories

(Core :: CSS Parsing and Computation, task, P4)

task

Tracking

()

RESOLVED FIXED
142 Branch
Tracking Status
firefox142 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

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

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

Oriol Brufau <obrufau@igalia.com> wrote:

layout: Floor free space by 0 in solve_inline_margins_avoiding_floats()

PlacementAmongFloats should guarantee that the inline size of the placement rect is at least as big as the inline size of the box, resulting in a non-negative free space.

However, that may fail when dealing with huge sizes that need to be saturated to MAX_AU, so this floors the free space by zero.

Testing: New crashtest
Fixes: #<!-- nolink -->37312

Reviewed in servo/servo#37362

Component: web-platform-tests → CSS Parsing and Computation
Product: Testing → Core

CI Results

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

Total 1 tests

Status Summary

Firefox

PASS : 1

Chrome

PASS : 1

Safari

CRASH: 1

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Pushed by wptsync@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/84bb9f9b9b9e https://hg.mozilla.org/integration/autoland/rev/bb6333ae99b4 [wpt PR 53034] - layout: Floor free space by 0 in solve_inline_margins_avoiding_floats(), a=testonly
Status: NEW → RESOLVED
Closed: 5 hours ago
Resolution: --- → FIXED
Target Milestone: --- → 142 Branch
You need to log in before you can comment on or make changes to this bug.