ladybird/Tests/LibWeb/Layout/expected/flex
InvalidUsernameException 8002efe780
Some checks are pending
CI / macOS, arm64, Sanitizer, Clang (push) Waiting to run
CI / Linux, x86_64, Fuzzers, Clang (push) Waiting to run
CI / Linux, x86_64, Sanitizer, GNU (push) Waiting to run
CI / Linux, x86_64, Sanitizer, Clang (push) Waiting to run
Package the js repl as a binary artifact / Linux, arm64 (push) Waiting to run
Package the js repl as a binary artifact / macOS, arm64 (push) Waiting to run
Package the js repl as a binary artifact / Linux, x86_64 (push) Waiting to run
Run test262 and test-wasm / run_and_update_results (push) Waiting to run
Lint Code / lint (push) Waiting to run
Label PRs with merge conflicts / auto-labeler (push) Waiting to run
Push notes / build (push) Waiting to run
LibWeb: Don't distort replaced elements with natural size in flex layout
When layouting a replaced element with natural width and height (e.g. a
raster graphic), the replaced element would correctly end up with its
natural size in the main-axis dimension. For the cross axis dimension
however, the replaced element was stretched or squished to the flex
containers inner cross size, which is wrong. Instead, we need to respect
the replaced elements aspect ratio.

Since the touched code does not have a direct correspondence to any spec
text, I am not fully certain that the change is completely correct.
However, tests agree with it, so the new code seems more correct than
the old one at least.

This fixes 50 WPT subtests in `css/css-flexbox`, most of which are
already in-tree. I have also created a new test for a scenario that did
not seem to be covered by WPT.
2025-07-15 00:52:50 +02:00
..
abspos-flex-child-static-position-with-align-items.txt test-web: Dump stacking context tree in layout test output 2025-07-09 14:36:08 +02:00
abspos-flex-child-static-position-with-justify-content.txt test-web: Dump stacking context tree in layout test output 2025-07-09 14:36:08 +02:00
abspos-flex-child-static-position-with-padding-on-flex-container.txt test-web: Dump stacking context tree in layout test output 2025-07-09 14:36:08 +02:00
abspos-flex-child-with-auto-height.txt LibWeb: Implement the unreachable scrollable overflow 2025-07-11 08:23:46 +02:00
abspos-flex-child-with-percentage-height.txt test-web: Dump stacking context tree in layout test output 2025-07-09 14:36:08 +02:00
align-center-margin.txt test-web: Dump stacking context tree in layout test output 2025-07-09 14:36:08 +02:00
align-items-normal.txt test-web: Dump stacking context tree in layout test output 2025-07-09 14:36:08 +02:00
align-keywords-start-and-end.txt test-web: Dump stacking context tree in layout test output 2025-07-09 14:36:08 +02:00
align-self-end-crash.txt test-web: Dump stacking context tree in layout test output 2025-07-09 14:36:08 +02:00
automatic-minimum-size-with-explicit-flex-basis-and-flex-container-with-max-content-main-size.txt test-web: Dump stacking context tree in layout test output 2025-07-09 14:36:08 +02:00
box-baseline-with-inline-flex-empty-child.txt test-web: Dump stacking context tree in layout test output 2025-07-09 14:36:08 +02:00
br-element-does-not-get-blockified-by-itself.txt test-web: Dump stacking context tree in layout test output 2025-07-09 14:36:08 +02:00
calc-flex-basis.txt test-web: Dump stacking context tree in layout test output 2025-07-09 14:36:08 +02:00
column-layout-intrinsic-main-size-with-cross-max-size-constraint.txt test-web: Dump stacking context tree in layout test output 2025-07-09 14:36:08 +02:00
columns-33-percent-width.txt test-web: Dump stacking context tree in layout test output 2025-07-09 14:36:08 +02:00
cross-size-of-item-with-box-sizing-border-box-and-nonzero-padding.txt test-web: Dump stacking context tree in layout test output 2025-07-09 14:36:08 +02:00
flex-basis-intrinsic-sizing-keywords.txt test-web: Dump stacking context tree in layout test output 2025-07-09 14:36:08 +02:00
flex-column-container-with-max-width-max-content.txt test-web: Dump stacking context tree in layout test output 2025-07-09 14:36:08 +02:00
flex-column-item-with-intrinsic-aspect-ratio-and-percentage-max-width.txt test-web: Dump stacking context tree in layout test output 2025-07-09 14:36:08 +02:00
flex-column-item-with-natural-aspect-ratio-and-automatic-cross-size.txt test-web: Dump stacking context tree in layout test output 2025-07-09 14:36:08 +02:00
flex-column-item-with-percentage-max-width.txt test-web: Dump stacking context tree in layout test output 2025-07-09 14:36:08 +02:00
flex-column-reverse-constrained-wrap.txt test-web: Dump stacking context tree in layout test output 2025-07-09 14:36:08 +02:00
flex-constrained-wrap-reverse.txt test-web: Dump stacking context tree in layout test output 2025-07-09 14:36:08 +02:00
flex-container-intrinsic-cross-size-with-max-content-main-size.txt test-web: Dump stacking context tree in layout test output 2025-07-09 14:36:08 +02:00
flex-container-with-max-width-and-negative-margin-in-same-axis.txt LibWeb: Implement the unreachable scrollable overflow 2025-07-11 08:23:46 +02:00
flex-gap-between-items-and-lines.txt test-web: Dump stacking context tree in layout test output 2025-07-09 14:36:08 +02:00
flex-item-min-width-fit-content.txt test-web: Dump stacking context tree in layout test output 2025-07-09 14:36:08 +02:00
flex-item-on-row-with-intrinsic-size.txt test-web: Dump stacking context tree in layout test output 2025-07-09 14:36:08 +02:00
flex-item-percentage-main-size-during-min-content-sizing.txt test-web: Dump stacking context tree in layout test output 2025-07-09 14:36:08 +02:00
flex-item-with-calc-main-size-and-layout-dependent-containing-block-size.txt test-web: Dump stacking context tree in layout test output 2025-07-09 14:36:08 +02:00
flex-item-with-intrinsic-aspect-ratio-and-max-height.txt LibWeb: Don't distort replaced elements with natural size in flex layout 2025-07-15 00:52:50 +02:00
flex-optimization-cases.txt test-web: Dump stacking context tree in layout test output 2025-07-09 14:36:08 +02:00
flex-row-reverse-constrained-wrap.txt test-web: Dump stacking context tree in layout test output 2025-07-09 14:36:08 +02:00
flex-row-reverse-with-centered-content.txt test-web: Dump stacking context tree in layout test output 2025-07-09 14:36:08 +02:00
flex-shorthand-flex-basis-zero-percent.txt test-web: Dump stacking context tree in layout test output 2025-07-09 14:36:08 +02:00
inf-available-space-with-auto-margins.txt test-web: Dump stacking context tree in layout test output 2025-07-09 14:36:08 +02:00
inline-flex-baseline-of-child.txt test-web: Dump stacking context tree in layout test output 2025-07-09 14:36:08 +02:00
inline-flex-early-resolution-of-percentage-height.txt test-web: Dump stacking context tree in layout test output 2025-07-09 14:36:08 +02:00
inline-flex-with-main-axis-margin-on-flex-container.txt test-web: Dump stacking context tree in layout test output 2025-07-09 14:36:08 +02:00
intrinsic-cross-size-contribution-with-main-size-constraint.txt test-web: Dump stacking context tree in layout test output 2025-07-09 14:36:08 +02:00
intrinsic-height-of-column-items-with-different-kinds-of-width.txt test-web: Dump stacking context tree in layout test output 2025-07-09 14:36:08 +02:00
intrinsic-height-of-flex-container-with-svg-item-that-only-has-natural-aspect-ratio.txt test-web: Dump stacking context tree in layout test output 2025-07-09 14:36:08 +02:00
justify-content-1.txt test-web: Dump stacking context tree in layout test output 2025-07-09 14:36:08 +02:00
justify-content-on-min-content-with-gap.txt test-web: Dump stacking context tree in layout test output 2025-07-09 14:36:08 +02:00
justify-content-space-between-single-item.txt test-web: Dump stacking context tree in layout test output 2025-07-09 14:36:08 +02:00
justify-content-with-margin-auto-child.txt test-web: Dump stacking context tree in layout test output 2025-07-09 14:36:08 +02:00
list-container-display-contents.txt test-web: Dump stacking context tree in layout test output 2025-07-09 14:36:08 +02:00
multi-line-column-container-with-automatic-height.txt test-web: Dump stacking context tree in layout test output 2025-07-09 14:36:08 +02:00
no-stretch-fit-width-for-item-that-can-resolve-aspect-ratio-through-height.txt test-web: Dump stacking context tree in layout test output 2025-07-09 14:36:08 +02:00
percentage-flex-basis-with-indefinite-flex-container-size.txt test-web: Dump stacking context tree in layout test output 2025-07-09 14:36:08 +02:00
percentage-flex-basis-with-indefinite-reference-value.txt test-web: Dump stacking context tree in layout test output 2025-07-09 14:36:08 +02:00
percentage-flex-item-height-with-indefinite-containing-block-height.txt test-web: Dump stacking context tree in layout test output 2025-07-09 14:36:08 +02:00
relpos-flex-item.txt test-web: Dump stacking context tree in layout test output 2025-07-09 14:36:08 +02:00
reverse-flex-layout-with-space-between-and-space-around.txt test-web: Dump stacking context tree in layout test output 2025-07-09 14:36:08 +02:00
reverse-with-justify-content-normal.txt test-web: Dump stacking context tree in layout test output 2025-07-09 14:36:08 +02:00
space-between-with-negative-remaining-space-on-line.txt test-web: Dump stacking context tree in layout test output 2025-07-09 14:36:08 +02:00
specified-size-suggestion-with-box-sizing-border-box.txt test-web: Dump stacking context tree in layout test output 2025-07-09 14:36:08 +02:00
stretch-alignment-with-cross-gap.txt test-web: Dump stacking context tree in layout test output 2025-07-09 14:36:08 +02:00
stretch-fit-width-for-column-layout-svg-item-that-only-has-natural-aspect-ratio.txt test-web: Dump stacking context tree in layout test output 2025-07-09 14:36:08 +02:00
svg-flex-item-with-percentage-max-size.txt test-web: Dump stacking context tree in layout test output 2025-07-09 14:36:08 +02:00