aboutsummaryrefslogtreecommitdiffstats
path: root/components/layout_2020/fragment_tree/box_fragment.rs
diff options
context:
space:
mode:
authorbors-servo <infra@servo.org>2023-06-28 08:41:47 +0200
committerGitHub <noreply@github.com>2023-06-28 08:41:47 +0200
commita725380db0b9fba31993409f7d0f4b2d11ca8f7d (patch)
tree69d31f2d0342a74845dd5a522575e163c85fd160 /components/layout_2020/fragment_tree/box_fragment.rs
parentea4701c57b3cb732a46ea5356e0945aa1d488d06 (diff)
parentbb1370255691ff723d1d804fe0348f88dd9ac686 (diff)
downloadservo-a725380db0b9fba31993409f7d0f4b2d11ca8f7d.tar.gz
servo-a725380db0b9fba31993409f7d0f4b2d11ca8f7d.zip
Auto merge of #29939 - mrobinson:fix-float-placement-with-future-margins, r=mrobinson
Properly position floats when subsequent boxes collapse margins with containing block Margins should be able to collapse through floats when collapsing with parent blocks (the containing block). To properly place floats in this situation, we need to look at these subsequent floats to find out how much of the margin will collapse with the parent. This initial implementation is very basic and the second step would be to cache this in order to avoid having to constantly recalculate it. Fixes #29915. Co-authored-by: Oriol Brufau <obrufau@igalia.com> <!-- Please describe your changes on the following line: --> --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `___` with appropriate data: --> - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors - [x] These changes fix #29915. - [x] There are tests for these changes <!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.--> <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->
Diffstat (limited to 'components/layout_2020/fragment_tree/box_fragment.rs')
0 files changed, 0 insertions, 0 deletions