Auto merge of #29799 - stshine:align-self-stretch, r=Loirooriol

layout_2020: Specify the used cross size when replaced item is stretched

According to spec, if the flex item has [align-self: stretch](https://drafts.csswg.org/css-flexbox/#propdef-align-self), redo layout for its contents, treating this used size as its definite cross size so that percentage-sized children can be resolved.

<!-- 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 #29788  (GitHub issue number if applicable)

<!-- Either: -->
- [x] There are tests for these changes OR

<!-- 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-01 23:52:08 +02:00 committed by GitHub
commit 0ea942f00f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
15 changed files with 23 additions and 12 deletions

View file

@ -0,0 +1,2 @@
[flex-aspect-ratio-img-column-001.html]
expected: FAIL

View file

@ -1,2 +0,0 @@
[flex-aspect-ratio-img-row-006.html]
expected: FAIL

View file

@ -0,0 +1,2 @@
[flex-minimum-height-flex-items-004.xht]
expected: FAIL

View file

@ -0,0 +1,2 @@
[flex-minimum-height-flex-items-007.xht]
expected: FAIL

View file

@ -0,0 +1,2 @@
[flex-minimum-height-flex-items-008.xht]
expected: FAIL

View file

@ -0,0 +1,2 @@
[flex-minimum-height-flex-items-020.html]
expected: FAIL

View file

@ -1,2 +0,0 @@
[flex-minimum-width-flex-items-012.html]
expected: FAIL

View file

@ -1,2 +0,0 @@
[flexbox-definite-cross-size-constrained-percentage.html]
expected: FAIL

View file

@ -1,2 +0,0 @@
[flexbox-whitespace-handling-001a.xhtml]
expected: FAIL

View file

@ -1,2 +0,0 @@
[flexbox-whitespace-handling-001b.xhtml]
expected: FAIL