Auto merge of #29887 - Loirooriol:float-inline-size-complete, r=mrobinson

Handle floats in BlockContainer::inline_content_sizes

Typically, block-level contents are stacked vertically, so this was just taking the maximum size among all contents. However, floats can be stacked horizontally, so we need to sum their sizes.

<!-- 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 #29874

<!-- Either: -->
- [X] There are tests for these changes OR
- [ ] These changes do not require tests because ___

<!-- 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. -->
This commit is contained in:
bors-servo 2023-06-19 16:56:16 +02:00 committed by GitHub
commit 836ae5fa48
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 112 additions and 28 deletions

View file

@ -1,4 +1,7 @@
[flex-basis-intrinsics-001.html]
[.flex-item 1]
expected: FAIL
[.flex-item 2]
expected: FAIL
@ -20,11 +23,5 @@
[.flex-item 6]
expected: FAIL
[.flex-item 7]
expected: FAIL
[.flex-item 9]
expected: FAIL
[.flex-item 11]
expected: FAIL