servo/components/layout_2020
bors-servo 0ea942f00f
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. -->
2023-06-01 23:52:08 +02:00
..
display_list Clean up and document the send_display_list interface 2023-05-24 09:16:25 +02:00
flexbox layout_2020: Specify the used cross size when replaced item is stretched 2023-05-27 09:41:10 +08:00
flow Auto merge of #29799 - stshine:align-self-stretch, r=Loirooriol 2023-06-01 23:52:08 +02:00
fragment_tree Convert some comments into rustdoc 2023-06-01 09:09:19 +02:00
tests Use the size of the containing block, not the size of the block formatting 2020-07-22 19:58:28 -07:00
Cargo.toml Start the transition to workspace dependencies 2023-05-17 11:59:35 +02:00
cell.rs Implement Default for ArcRefCell 2020-03-17 11:15:17 -07:00
context.rs Combine DOM-related concepts in Layout 2020 into dom.rs 2023-05-13 11:52:59 +02:00
dom.rs Combine DOM-related concepts in Layout 2020 into dom.rs 2023-05-13 11:52:59 +02:00
dom_traversal.rs Further changes required by Servo 2023-05-16 12:54:55 +02:00
formatting_contexts.rs Combine DOM-related concepts in Layout 2020 into dom.rs 2023-05-13 11:52:59 +02:00
fragments.rs Better implement getComputedStyle() for positioned insets 2023-05-09 12:07:20 +02:00
geom.rs Add an implementation of the core float and clear placement logic in layout 2020-07-20 12:42:34 -07:00
layout_debug.rs Detect body elements during layout 2023-05-04 10:46:27 +02:00
lib.rs Combine DOM-related concepts in Layout 2020 into dom.rs 2023-05-13 11:52:59 +02:00
lists.rs Combine DOM-related concepts in Layout 2020 into dom.rs 2023-05-13 11:52:59 +02:00
positioned.rs layout_2020: Add an optional box size parameter to ReplacedContent::used_size_as_if_inline_element 2023-05-27 09:03:40 +08:00
query.rs Simplify our setup for font metric queries from style 2023-05-11 21:02:15 +02:00
replaced.rs layout_2020: Add an optional box size parameter to ReplacedContent::used_size_as_if_inline_element 2023-05-27 09:03:40 +08:00
sizing.rs Parallelize BlockContainer::inline_content_sizes 2020-06-19 15:38:15 +02:00
style_ext.rs layout_2020: Add 'establishes_block_formatting_context' method to 'ComputedValuesExt' 2023-05-31 21:51:52 +08:00
traversal.rs Combine DOM-related concepts in Layout 2020 into dom.rs 2023-05-13 11:52:59 +02:00