Closed Bug 1755040 Opened 3 years ago Closed 3 years ago

[wpt-sync] Sync PR 32818 - [tables] Fix producing negative columns.

Categories

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

task

Tracking

()

RESOLVED FIXED
99 Branch
Tracking Status
firefox99 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

(Depends on 1 open bug, )

Details

(Whiteboard: [wptsync downstream])

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

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

Ian Kilpatrick <ikilpatrick@chromium.org> wrote:

[tables] Fix producing negative columns.

Previously we were using float logic within
DistributeInlineSizeToComputedInlineSizeAuto.

This had the effect (when pushed to extremes) to produce negative
column widths, which would result in a negative available space
given to some children.

This negative available space will cause some layouts (block) to do
bad things like try and do a null-deref read.

This patch changes the logic to keep everything in the LayoutUnit
space.

Bug: 1294634
Change-Id: Ic86cb54620bd1985024d60b7510c7281e6799ebf

Reviewed-on: https://chromium-review.googlesource.com/3451134
WPT-Export-Revision: 529abce5baa0e7c3d9e01ca8fb2e75d47688ddf6

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

CI Results

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

Total 1 tests

Status Summary

Firefox

PASS : 1

Chrome

CRASH: 1

Safari

PASS : 1

Links

GitHub PR Head
GitHub PR Base

Pushed by wptsync@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/db4b7a912b7f [wpt PR 32818] - [tables] Fix producing negative columns., a=testonly
Pushed by wptsync@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/3319920cc939 [wpt PR 32818] - [tables] Fix producing negative columns., a=testonly
Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 99 Branch
You need to log in before you can comment on or make changes to this bug.