diff options
author | bors-servo <infra@servo.org> | 2023-06-12 09:33:48 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-12 09:33:48 +0200 |
commit | 1d69e7b2347ff6aa40a9f3dc4e20f0edf14cf80b (patch) | |
tree | 3e5bfdaefc03228ffc193de7c7e0854986720b6a /python/tidy/test.py | |
parent | 21c199072f17d907fa867650a093ec3e87167bc7 (diff) | |
parent | bc58bb080f5a209f8817de7a33e33613d567c012 (diff) | |
download | servo-1d69e7b2347ff6aa40a9f3dc4e20f0edf14cf80b.tar.gz servo-1d69e7b2347ff6aa40a9f3dc4e20f0edf14cf80b.zip |
Auto merge of #29859 - mrobinson:float-negative-block-margin, r=Loirooriol
Layout 2020: Properly handle negative margins in floats
If a float has negative block margins, it should be pushed upward, but shouldn't affect the positioning of any floats that came before it. It should lower the ceiling though when it still has some non-negative block contribution. In order to implement this behavior, we should only place the float considering its non-negative block length contribution. If the float is pushed up completely past it's "natural" position, it should be placed like a float with zero block size.
<!-- 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] 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 'python/tidy/test.py')
0 files changed, 0 insertions, 0 deletions