Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bug 1851168 [wpt PR 41761] - Locate parent fragment of nested OOF mul…
…ticol correctlier., a=testonly Automatic update from web-platform-tests Locate parent fragment of nested OOF multicol correctlier. Fix a mistake from crrev.com/c/4798090 . We shouldn't require the multicol container that we stop at to be in-flow. The only actual code change here is precisely that: We will still stop searching when an entry in the containing block chain is in-flow and the containing block of that one is a fragmentation context root (e.g. multicol container), but don't require this fragmentation context root to be in-flow. It's the right container of the inner OOF multicol regardless of that. The rest of the code changes are just an attempt to make it a bit more readable. We were skipping one element in the chain (the containing block of the OOF input multicol container box), and went directly to the containing block of that one. It really shouldn't matter in practice, because if the containing block (CB) of the OOF input multicol container box also is a multicol container, we're not going to stop there anyway, because the fragments of the OOF input box still must belong higher up in the tree, participating in an outer fragmentation context, because we can be sure that CB isn't the outermost fragmentation context, because in that case we would still be inside its layout algorithm, and therefore wouldn't have to mutate its fragment (since it wouldn't exist yet), so we won't be here in such cases. But, unlike this paragraph of explanation, the code is a bit easier to follow, if we start at the input box itself. Bug: 1475385 Change-Id: Ifeb61ac1633b9a10a2a72b2871f817bfd24855d7 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4836053 Reviewed-by: Alison Maher <almaher@microsoft.com> Commit-Queue: Morten Stenshorne <mstensho@chromium.org> Cr-Commit-Position: refs/heads/main@{#1191979} -- wpt-commits: e83b508b03cbdbcdc51a22b3fa935251503673de wpt-pr: 41761
- Loading branch information