Closed Bug 1760166 Opened 2 years ago Closed 2 years ago

[wpt-sync] Sync PR 33169 - [block-in-inline] Prevent inline box from culling when it has block-in-inline children

Categories

(Core :: Layout, task, P4)

task

Tracking

()

RESOLVED FIXED
100 Branch
Tracking Status
firefox100 --- fixed

People

(Reporter: mozilla.org, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

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

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

Koji Ishii <kojii@chromium.org> wrote:

[block-in-inline] Prevent inline box from culling when it has block-in-inline children

CL:3442958 added layout support for parallel fragmentation flows [1]
established inside a block-in-inline. NGInlineCursor didn't handle this
correctly if the inline was culled. We need to leave the parallel flow
and go back to the main flow fragmentainer and start looking for the
next object there. Otherwise we may have moved past it.

This CL fixes this issue by not culling inline boxes that have
block-in-inline children. This simplifies the code by a small perf cost
for block-in-inline.

The analysis and tests were copied from the original effort by
mstenosho@ at crrev.com/c/3483661.

[1] https://www.w3.org/TR/css-break-3/#parallel-flows

Bug: 1295183, 1301136
Change-Id: I0b3db80b934714b4a5134ca67f756f0ee0d21b86
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3486321
Auto-Submit: Koji Ishii \<kojii@chromium.org>
Reviewed-by: Yoshifumi Inoue \<yosin@chromium.org>
Commit-Queue: Yoshifumi Inoue \<yosin@chromium.org>
Cr-Commit-Position: refs/heads/main@{#980432}

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

CI Results

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

Total 4 tests

Status Summary

Firefox

PASS: 4

Chrome

PASS: 4

Safari

PASS: 4

Links

GitHub PR Head
GitHub PR Base

Pushed by wptsync@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/76a2ca2d7b17
[wpt PR 33169] - [block-in-inline] Prevent inline box from culling when it has block-in-inline children, a=testonly
Pushed by wptsync@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/b687cc3c9f97
[wpt PR 33169] - [block-in-inline] Prevent inline box from culling when it has block-in-inline children, a=testonly
Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 100 Branch
You need to log in before you can comment on or make changes to this bug.