1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2026-01-17 12:40:59 +00:00
serenity/Tests/LibWeb/Layout/input/flex
Andreas Kling 72dd37438d LibWeb: Treat flex item cross axis max-size as "none" in more cases
There are a bunch of situations where we need to treat cross axis
max-size properties as "none", notably percentage values when the
reference containing block size is an intrinsic sizing constraint.

This fixes an issue where flex items with definite width would get
shrunk to 0px by "max-width: 100%" in case the item itself is an
SVG with no natural width or height.

For consistency, we now use the should_treat_max_width/height_as_none
helpers throughout FFC.

This makes the search/account/cart icons show up in the top right
on https://twinings.co.uk :^)
2024-01-15 12:55:47 +01:00
..
abspos-flex-child-static-position-with-align-items.html LibWeb: Adjust 4 abspos tests to highlight errors 2023-07-08 06:13:56 +02:00
abspos-flex-child-static-position-with-justify-content.html LibWeb: Adjust 4 abspos tests to highlight errors 2023-07-08 06:13:56 +02:00
abspos-flex-child-static-position-with-padding-on-flex-container.html LibWeb: Don't offset abspos children of flex container by padding twice 2023-10-08 09:06:30 +02:00
abspos-flex-child-with-auto-height.html LibWeb: Handle case where abspos flex child position depends on height 2023-09-03 15:44:47 +02:00
align-items-normal.html LibWeb: Make align-items: normal behave like stretch on flex items 2023-08-20 19:37:50 +02:00
align-keywords-start-and-end.html LibWeb: Support start and end alignment values in flex layout 2023-06-06 21:02:04 +02:00
align-self-end-crash.html LibWeb: Don't assert when flex-item has align-self: end 2023-06-20 13:26:41 +02:00
automatic-minimum-size-with-explicit-flex-basis-and-flex-container-with-max-content-main-size.html LibWeb: Fix a case of incorrect flex container max-content main size 2023-06-08 13:54:11 +02:00
box-baseline-with-inline-flex-empty-child.html LibWeb: Only derive baseline from children with a non-empty line box 2023-07-28 17:02:33 +02:00
br-element-does-not-get-blockified-by-itself.html LibWeb: Consolidate consecutive inlines in a single anonymous flex item 2023-09-01 12:45:38 +02:00
calc-flex-basis.html LibWeb: Support flex-basis: calc(...) 2023-05-17 07:40:17 +02:00
columns-33-percent-width.html 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.html LibWeb: Fix bug where box-sizing: border-box made flex items too small 2023-04-27 13:57:52 +02:00
flex-column-container-with-max-width-max-content.html LibWeb: Ignore flex container size constraints during intrinsic sizing 2023-08-01 20:15:20 +02:00
flex-column-item-with-intrinsic-aspect-ratio-and-percentage-max-width.html LibWeb: Fix percentage min/max sizes on flex items with intrinsic ratio 2023-05-10 18:46:04 +02:00
flex-column-item-with-natural-aspect-ratio-and-automatic-cross-size.html LibWeb: Resolve flex item auto cross sizes through aspect ratio 2023-07-05 19:03:20 +02:00
flex-column-item-with-percentage-max-width.html LibWeb: Resolve flex item percentages against used flex container sizes 2023-07-18 06:04:55 +02:00
flex-container-intrinsic-cross-size-with-max-content-main-size.html LibWeb: Allow infinitely long flex lines when sizing under max-content 2023-06-01 15:11:48 +02:00
flex-container-with-max-width-and-negative-margin-in-same-axis.html LibWeb: Stop changing width of block-level flex containers during layout 2023-05-08 15:56:00 +02:00
flex-gap-between-items-and-lines.html LibWeb: Honor column-gap and row-gap CSS properties in flex layout 2023-04-14 13:22:07 +02:00
flex-item-min-width-fit-content.html LibWeb: Fully resolve min- and max-sizes for flex items 2023-07-17 08:40:15 +02:00
flex-item-with-calc-main-size-and-layout-dependent-containing-block-size.html LibWeb: Support flex items with calc() main size containing percentages 2023-06-02 17:17:45 +02:00
flex-item-with-intrinsic-aspect-ratio-and-max-height.html LibWeb: Adjust flex item main size through aspect ratio if needed 2023-05-10 13:03:05 +02:00
flex-row-reverse-with-centered-content.html LibWeb: Initial offset in reverse flex layout moved to opposite side 2023-05-09 10:32:09 +02:00
flex-shorthand-flex-basis-zero-percent.html LibWeb: Set flex-basis to 0% when omitted from flex shorthand 2023-06-08 10:05:56 +02:00
inf-available-space-with-auto-margins.html LibWeb: Avoid leaking infinite remaining_free_space in FFC calculation 2023-07-26 05:17:56 +02:00
inline-flex-with-main-axis-margin-on-flex-container.html LibWeb: Allow IFC to size inline-flex boxes midway through flex layout 2023-06-19 18:51:00 +02:00
intrinsic-height-of-column-items-with-different-kinds-of-width.html LibWeb: Support more kinds of indefinite widths on flex column items 2023-08-05 10:58:12 +02:00
intrinsic-height-of-flex-container-with-svg-item-that-only-has-natural-aspect-ratio.html LibWeb: Don't let items flex to infinite size in column layout 2023-07-06 09:25:48 +02:00
justify-content-1.html LibWeb: Support justify-content: space-evenly in flex layouts 2023-07-05 19:03:20 +02:00
justify-content-space-between-single-item.html LibWeb: Fix division by zero in distribute_any_remaining_free_space 2023-07-25 14:51:50 +02:00
justify-content-with-margin-auto-child.html LibWeb: Handle auto margins with flex and justify-content 2023-07-26 08:35:23 +02:00
list-container-display-contents.html LibWeb: Add support for "display: contents" 2023-07-28 05:29:43 +02:00
multi-line-column-container-with-automatic-height.html LibWeb: Fix multi-line flex column layouts with auto height on container 2023-04-16 21:45:15 +02:00
percentage-flex-basis-with-indefinite-flex-container-size.html LibWeb: Treat unresolvable percentage flex-basis values as 'content' 2023-04-18 10:06:02 +02:00
relpos-flex-item.html LibWeb: Resolve used insets for flex items 2023-07-04 06:43:53 +02:00
reverse-flex-layout-with-space-between-and-space-around.html LibWeb: Support reverse flex layout with space-around/space-between 2023-05-28 18:02:00 +02:00
reverse-with-justify-content-normal.html LibWeb: Fix reverse flex layout with justify-content: normal 2024-01-08 14:42:19 +01:00
specified-size-suggestion-with-box-sizing-border-box.html LibWeb: Honor box-sizing in flex item "specified size suggestion" 2023-04-17 18:22:53 +02:00
stretch-alignment-with-cross-gap.html LibWeb: Honor gap between flex lines when using align-content: stretch 2023-04-16 20:52:32 +02:00
svg-flex-item-with-percentage-max-size.html LibWeb: Treat flex item cross axis max-size as "none" in more cases 2024-01-15 12:55:47 +01:00