Closed Bug 1858209 Opened 3 years ago Closed 3 years ago

[wpt-sync] Sync PR 42458 - If there's a float ahead, it's not the last container.

Categories

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

task

Tracking

()

RESOLVED FIXED
121 Branch
Tracking Status
firefox121 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

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

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

Morten Stenshorne <mstensho@chromium.org> wrote:

If there's a float ahead, it's not the last container.

is_last_container was overwritten and set to true at the end of
IsContainerForCulledInline(), because we didn't take into account the
fact that we had actually found a float in a subsequent fragmentainer.

The result was that we'd incorrectly think that the first container
fragment was also the last container fragment for the culled inline.
Thus we would miss the float in the second container fragment, unless
NeedsTreeBuilderContextUpdate() returned true and saved us in
PrePaintTreeWalk::Walk().

Bug: 1489177
Change-Id: I71693a842af83272a32e7d78d42c692eda076649
Reviewed-on: https://chromium-review.googlesource.com/4925370
WPT-Export-Revision: b492b64428b0c04a8aab6a7d96a42e547d7e423d

Component: web-platform-tests → Layout: Columns
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

PASS: 1

Safari

PASS: 1

Links

GitHub PR Head
GitHub PR Base

Pushed by wptsync@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/affcd98f71cd [wpt PR 42458] - If there's a float ahead, it's not the last container., a=testonly
Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 121 Branch
You need to log in before you can comment on or make changes to this bug.