Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[LayoutNG] Add support for negative margins and new formatting contexts
This does two things: 1. Allows a new formatting context to be sized and positioned outside its layout opportunity when negative margins are present. This occurs when a layout opportunity inline dimensions matches the initial child available space (ignoring floats). Additionally when a new formatting context "jumps out" of its layout opportunity it ignores any floats which might impede it. 2. Performs layout inside an opportunity, and then checks if the result can fit within the same opportunity. Previously we were trying to position in an arbitrary layout opportunity, which fails the new-fc-relayout.html test. Cq-Include-Trybots: luci.chromium.try:linux_layout_tests_layout_ng Change-Id: I6b44b6273be5c0f633e39a8875cc54ea0bc54480 Bug: 635619 Reviewed-on: https://chromium-review.googlesource.com/1150849 Commit-Queue: Ian Kilpatrick <[email protected]> Reviewed-by: Morten Stenshorne <[email protected]> Cr-Commit-Position: refs/heads/master@{#579064}
- Loading branch information