[wpt-sync] Sync PR 36961 - Discard FragmentData entries that are no longer represented.
Categories
(Core :: Layout: Columns, task, P4)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox109 | --- | fixed |
People
(Reporter: wpt-sync, Unassigned)
References
()
Details
(Whiteboard: [wptsync downstream])
Sync web-platform-tests PR 36961 into mozilla-central (this bug is closed when the sync is complete).
PR: https://github.com/web-platform-tests/wpt/pull/36961
Details from upstream follow.
Morten Stenshorne <mstensho@chromium.org> wrote:
Discard FragmentData entries that are no longer represented.
A re-layout may cause columns to appear and disappear, which may shuffle
the fragment IDs around. If a new column has been added, which doesn't
have an NG fragment for a given LayoutObject in that new column [*], we
may have to discard the old FragmentData entry.[*] One known case is when out-of-flow layout inserts fragmentainers on
its own. This may lead to "non-contiguous" chains of FragmentData
objects. In the attached test we initially have one column before the
spanner and one after it. The anonymous containing block inside the
multicol container is represented in both. We get one FragmentData entry
with fragmentainer index 0, and one with index 1. Nice. Then we re-lay
out, and due to imperfect column balancing (sorry, we keep doing our
best, but this may happen), we end up with two columns before the
spanner, and one after it. The second column before the spanner is
created by the out-of-flow layout machinery, which just adds the
fragment for the OOF, and not the anonymous containing block inside the
multicol container. The anonymous containing block will then be
represented in the first column, but not in the second one, and then it
will appear again in the third column (after the spanner). In the first
layout we had FragmentData at index 0 and 1. After re-layout we should
have one at index 0 and one at index 2, and none at index 1. So we have
to make sure that we remove the one at index 1, and then append one at
index 2.Bug: 1361902
Change-Id: I49bc3cc8f19ae07189c573884db049046c81278a
Reviewed-on: https://chromium-review.googlesource.com/4025783
WPT-Export-Revision: 50c63c9581421ad96127ea94d5c6f3981a8ddcd7
| Assignee | ||
Updated•4 years ago
|
| Assignee | ||
Comment 1•4 years ago
|
||
| Assignee | ||
Comment 2•4 years ago
|
||
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
Comment 4•3 years ago
|
||
| bugherder | ||
Description
•