diff options
author | bors-servo <infra@servo.org> | 2023-06-28 08:41:47 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-28 08:41:47 +0200 |
commit | a725380db0b9fba31993409f7d0f4b2d11ca8f7d (patch) | |
tree | 69d31f2d0342a74845dd5a522575e163c85fd160 /third_party/ply/example/BASIC/basic.py | |
parent | ea4701c57b3cb732a46ea5356e0945aa1d488d06 (diff) | |
parent | bb1370255691ff723d1d804fe0348f88dd9ac686 (diff) | |
download | servo-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 'third_party/ply/example/BASIC/basic.py')
0 files changed, 0 insertions, 0 deletions