You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Out-of-flow positioned elements bubble up during in-flow layout. Then we
lay out that list of OOFs when at their containing block. Each such OOF
`child` may have OOF descendants on its own, and they are not
necessarily contained by `child` (if they are fixed-positioned,
typically), and they may therefore bubble up to the containing block
we're currently processing (and even beyond), instead of being dealt
with inside of `child`.
We used to take care of such "new" OOFs when done with the initial list,
but that may violate tree order. Instead, handle them right after
`child` (their ancestor) has been laid out. Do this recursively, since
there may be nesting (e.g. fixed in fixed in OOF).
Correct tree order is important for anchor-positioned elements, so that
the anchors that they refer to are correctly discovered.
Bug: 428354426
Change-Id: Ibe27b6064599350905296bda1e29d1def1217d93
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6905362
Commit-Queue: Morten Stenshorne <[email protected]>
Reviewed-by: Koji Ishii <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1509471}
0 commit comments