ladybird/Tests/LibWeb/Layout/expected/flex
Andreas Kling 7b2a427430 LibWeb: Avoid computing automatic minimum size for some flex items
There's a specific (and thankfully very common!) scenario where we can
actually skip calculating the automatic minimum size for flex items.

In single-line (no wrapping) flex containers, if the sum of all item
flex base sizes is <= the flex container's main size, we know that
none of the items will be shrunk by the layout algorithm.

And so for any flex item with definite main size AND automatic minimum
main size, we can treat the automatic minimum size as 0.
2025-04-22 15:46:10 +02:00
..
abspos-flex-child-static-position-with-align-items.txt LibWeb: Use containing block to compute scrollable overflow 2024-10-18 15:26:42 +02:00
abspos-flex-child-static-position-with-justify-content.txt LibWeb: Make FC of containing block responsible for abspos layout 2024-09-12 07:36:32 +02:00
abspos-flex-child-static-position-with-padding-on-flex-container.txt LibWeb: Use containing block to compute scrollable overflow 2024-10-18 15:26:42 +02:00
abspos-flex-child-with-auto-height.txt LibWeb: Stop zero-area children from causing scrollable overflow 2024-11-24 11:10:47 +01:00
abspos-flex-child-with-percentage-height.txt LibWeb: Use containing block to compute scrollable overflow 2024-10-18 15:26:42 +02:00
align-center-margin.txt LibWeb: Respect margin boxes when center-aligning flex items 2025-03-05 18:07:10 +01:00
align-items-normal.txt LibWeb: Make align-items: normal behave like stretch on flex items 2023-08-20 19:37:50 +02:00
align-keywords-start-and-end.txt LibWeb: Use separate structure to represent fragments in paintable tree 2024-01-13 10:53:38 +01:00
align-self-end-crash.txt LibWeb: Add ViewportPaintable to represent viewports in the paint tree 2023-08-20 05:02:59 +02:00
automatic-minimum-size-with-explicit-flex-basis-and-flex-container-with-max-content-main-size.txt LibWeb: Use separate structure to represent fragments in paintable tree 2024-01-13 10:53:38 +01:00
box-baseline-with-inline-flex-empty-child.txt LibWeb: Use separate structure to represent fragments in paintable tree 2024-01-13 10:53:38 +01:00
br-element-does-not-get-blockified-by-itself.txt LibWeb: Use separate structure to represent fragments in paintable tree 2024-01-13 10:53:38 +01:00
calc-flex-basis.txt LibGfx+LibWeb: Use harfbuzz for text shaping 2024-08-16 22:28:34 +02:00
column-layout-intrinsic-main-size-with-cross-max-size-constraint.txt LibWeb: Use correct max-size in intrinsic sizing of column flex layout 2024-01-16 13:14:00 +01:00
columns-33-percent-width.txt LibWeb: Forbid using CSS::Length as reference value in resolved() 2024-01-07 09:03:57 +01:00
cross-size-of-item-with-box-sizing-border-box-and-nonzero-padding.txt LibWeb: Use separate structure to represent fragments in paintable tree 2024-01-13 10:53:38 +01:00
flex-basis-intrinsic-sizing-keywords.txt LibWeb: Allow flex-basis: {min,max,fit}-content 2024-06-23 19:15:24 +02:00
flex-column-container-with-max-width-max-content.txt LibWeb: Add ViewportPaintable to represent viewports in the paint tree 2023-08-20 05:02:59 +02:00
flex-column-item-with-intrinsic-aspect-ratio-and-percentage-max-width.txt LibWeb: Add ViewportPaintable to represent viewports in the paint tree 2023-08-20 05:02:59 +02:00
flex-column-item-with-natural-aspect-ratio-and-automatic-cross-size.txt LibWeb: Support transforms, stroking, gradients, etc for SVG <text> 2023-11-05 02:46:46 +01:00
flex-column-item-with-percentage-max-width.txt LibWeb: Use separate structure to represent fragments in paintable tree 2024-01-13 10:53:38 +01:00
flex-column-reverse-constrained-wrap.txt LibWeb: Only reverse each line of a reverse flex-direction 2024-09-02 17:42:11 +02:00
flex-constrained-wrap-reverse.txt LibWeb: Add support for flex-wrap: wrap-reverse 2024-09-02 17:42:11 +02:00
flex-container-intrinsic-cross-size-with-max-content-main-size.txt LibWeb: Use separate structure to represent fragments in paintable tree 2024-01-13 10:53:38 +01:00
flex-container-with-max-width-and-negative-margin-in-same-axis.txt LibWeb: Add ViewportPaintable to represent viewports in the paint tree 2023-08-20 05:02:59 +02:00
flex-gap-between-items-and-lines.txt LibWeb: Add ViewportPaintable to represent viewports in the paint tree 2023-08-20 05:02:59 +02:00
flex-item-min-width-fit-content.txt LibGfx+LibWeb: Draw glyph runs with subpixel accuracy 2024-12-21 23:09:52 +01:00
flex-item-on-row-with-intrinsic-size.txt LibWeb: Account for intrinsic width or height in flex base size 2024-08-09 17:01:50 +01:00
flex-item-percentage-main-size-during-min-content-sizing.txt LibWeb: Resolve flex item % main size to 0 during min-content sizing 2024-10-06 16:04:00 +02:00
flex-item-with-calc-main-size-and-layout-dependent-containing-block-size.txt LibWeb: Use separate structure to represent fragments in paintable tree 2024-01-13 10:53:38 +01:00
flex-item-with-intrinsic-aspect-ratio-and-max-height.txt LibWeb: Don't make flex layout responsible for flex container cross size 2024-03-27 16:43:04 +01:00
flex-optimization-cases.txt LibWeb: Avoid computing automatic minimum size for some flex items 2025-04-22 15:46:10 +02:00
flex-row-reverse-constrained-wrap.txt LibWeb: Only reverse each line of a reverse flex-direction 2024-09-02 17:42:11 +02:00
flex-row-reverse-with-centered-content.txt LibWeb: Use separate structure to represent fragments in paintable tree 2024-01-13 10:53:38 +01:00
flex-shorthand-flex-basis-zero-percent.txt LibWeb: Use separate structure to represent fragments in paintable tree 2024-01-13 10:53:38 +01:00
inf-available-space-with-auto-margins.txt LibWeb: Use separate structure to represent fragments in paintable tree 2024-01-13 10:53:38 +01:00
inline-flex-baseline-of-child.txt LibWeb: Propagate margin and offset when computing a box's baseline 2024-07-15 21:31:51 +02:00
inline-flex-early-resolution-of-percentage-height.txt LibWeb: Propagate margin and offset when computing a box's baseline 2024-07-15 21:31:51 +02:00
inline-flex-with-main-axis-margin-on-flex-container.txt LibWeb: Propagate margin and offset when computing a box's baseline 2024-07-15 21:31:51 +02:00
intrinsic-cross-size-contribution-with-main-size-constraint.txt LibWeb: Use containing block to compute scrollable overflow 2024-10-18 15:26:42 +02:00
intrinsic-height-of-column-items-with-different-kinds-of-width.txt LibWeb: Use separate structure to represent fragments in paintable tree 2024-01-13 10:53:38 +01:00
intrinsic-height-of-flex-container-with-svg-item-that-only-has-natural-aspect-ratio.txt LibWeb: Stretch-fit flex items with aspect ratio but no fixed sizes 2024-02-25 14:06:06 +01:00
justify-content-1.txt LibWeb: Add tests for justify-*: left/right 2024-09-10 10:40:07 +01:00
justify-content-on-min-content-with-gap.txt LibWeb: Change flex remaining space distribution to include gap 2024-07-05 21:31:41 +02:00
justify-content-space-between-single-item.txt LibWeb: Use separate structure to represent fragments in paintable tree 2024-01-13 10:53:38 +01:00
justify-content-with-margin-auto-child.txt LibWeb: Add tests for justify-*: left/right 2024-09-10 10:40:07 +01:00
list-container-display-contents.txt LibWeb: Account for collapsed top margins in BFC root height calculation 2025-02-22 18:41:42 +01:00
multi-line-column-container-with-automatic-height.txt LibWeb: Add ViewportPaintable to represent viewports in the paint tree 2023-08-20 05:02:59 +02:00
no-stretch-fit-width-for-item-that-can-resolve-aspect-ratio-through-height.txt LibWeb: Fix overeager fallback to stretch-fit width for some flex items 2024-06-23 19:15:24 +02:00
percentage-flex-basis-with-indefinite-flex-container-size.txt LibWeb: Use separate structure to represent fragments in paintable tree 2024-01-13 10:53:38 +01:00
percentage-flex-basis-with-indefinite-reference-value.txt LibWeb: Don't mark heights as definite in set_content_height() 2024-02-21 17:54:05 +01:00
percentage-flex-item-height-with-indefinite-containing-block-height.txt LibWeb: Don't mark heights as definite in set_content_height() 2024-02-21 17:54:05 +01:00
relpos-flex-item.txt LibWeb: Use separate structure to represent fragments in paintable tree 2024-01-13 10:53:38 +01:00
reverse-flex-layout-with-space-between-and-space-around.txt LibWeb: Use separate structure to represent fragments in paintable tree 2024-01-13 10:53:38 +01:00
reverse-with-justify-content-normal.txt LibWeb: Fix reverse flex layout with justify-content: normal 2024-01-08 14:42:19 +01:00
space-between-with-negative-remaining-space-on-line.txt LibWeb: Clamp justification space between flex items to 0 2024-01-25 15:10:21 +01:00
specified-size-suggestion-with-box-sizing-border-box.txt LibWeb: Add ViewportPaintable to represent viewports in the paint tree 2023-08-20 05:02:59 +02:00
stretch-alignment-with-cross-gap.txt LibWeb: Add ViewportPaintable to represent viewports in the paint tree 2023-08-20 05:02:59 +02:00
stretch-fit-width-for-column-layout-svg-item-that-only-has-natural-aspect-ratio.txt LibWeb: Stretch-fit flex items with aspect ratio but no fixed sizes 2024-02-25 14:06:06 +01:00
svg-flex-item-with-percentage-max-size.txt LibWeb: Use SVGGraphicsBox for <symbol> and <use> elements 2024-03-12 08:51:50 +01:00