servo/components/layout
Oriol Brufau 93c9fc14f1
layout: Let stretch on flex item cross size stretch to the line (#38526)
We were instead stretching to the containing block, which implied that
the behaviors of a `stretch` size and `stretch` alignment weren't
consistent.

As resolved by the CSSWG, the behavior will now be:
 - If the cross size of the line is known, stretch to the line.
 - Otherwise, stretch to the containing block.

See https://github.com/w3c/csswg-drafts/issues/11784

This aligns us with Blink, which has already shipped this new behavior.

Testing: Improves existing WPT and adds a new test.

Signed-off-by: Oriol Brufau <obrufau@igalia.com>
2025-08-08 15:45:30 +00:00
..
display_list script/compositor: Handle cursor updates from script (#38518) 2025-08-07 18:49:38 +00:00
flexbox layout: Let stretch on flex item cross size stretch to the line (#38526) 2025-08-08 15:45:30 +00:00
flow layout: Recreate lazy block size when re-doing layout to avoid floats (#38366) 2025-08-04 17:07:10 +00:00
fragment_tree Revert "Include the scrollable overflow of a child box if either its parent or child has overflow: visible (#38443)" (#38546) 2025-08-08 13:37:14 +00:00
stylesheets Reland Input type=text Shadow DOM With Performance Improvement (#37483) 2025-07-23 09:08:24 +00:00
table layout: Make IndependentFormattingContext::contents private (again) (#38350) 2025-07-30 12:55:32 +00:00
taffy layout(grid): implement named grid lines and areas (#38306) 2025-08-07 14:41:19 +00:00
tests layout: Combine layout_2020 and layout_thread_2020 into a crate called layout (#36613) 2025-04-19 10:17:03 +00:00
Cargo.toml layout: Add a layout hit test and use it for document.elementsFromPoint (#38463) 2025-08-05 09:48:21 +00:00
cell.rs layout: Combine layout_2020 and layout_thread_2020 into a crate called layout (#36613) 2025-04-19 10:17:03 +00:00
construct_modern.rs layout: Make IndependentFormattingContext::contents private (again) (#38350) 2025-07-30 12:55:32 +00:00
context.rs layout: Limit visibility of some types and removed unused enum variants / data (#38428) 2025-08-02 16:52:00 +00:00
dom.rs layout: Skip box tree construction when possible (#37957) 2025-07-09 17:33:09 +00:00
dom_traversal.rs Reland Input type=text Shadow DOM With Performance Improvement (#37483) 2025-07-23 09:08:24 +00:00
formatting_contexts.rs Use cached layout in grid layout (#38493) 2025-08-06 14:15:12 +00:00
geom.rs layout: Let stretch on flex item cross size stretch to the line (#38526) 2025-08-08 15:45:30 +00:00
layout_box_base.rs layout: Skip box tree construction when possible (#37957) 2025-07-09 17:33:09 +00:00
layout_impl.rs script/layout: Ensure a StackingContextTree before IntersectionObserver geometry queries (#38473) 2025-08-06 13:46:43 +00:00
lib.rs layout: Limit visibility of some types and removed unused enum variants / data (#38428) 2025-08-02 16:52:00 +00:00
lists.rs Upgrade Stylo to 2025-06-03 (#37444) 2025-06-19 12:30:32 +00:00
positioned.rs layout: Fix depends_on_block_constraints logic (#38318) 2025-07-29 09:59:54 +00:00
query.rs layout: Add BoxFragment rare data (#38325) 2025-08-01 05:17:39 +00:00
quotes.rs layout: Combine layout_2020 and layout_thread_2020 into a crate called layout (#36613) 2025-04-19 10:17:03 +00:00
replaced.rs layout: Let stretch on flex item cross size stretch to the line (#38526) 2025-08-08 15:45:30 +00:00
sizing.rs layout: Fix block SizeConstraint for replaced elements (#37758) 2025-06-30 12:07:37 +00:00
style_ext.rs layout: Skip box tree construction when possible (#37957) 2025-07-09 17:33:09 +00:00
traversal.rs layout: optimize the propagation and cleanup of RestyleDamage (#38199) 2025-07-25 12:10:16 +00:00