1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 03:08:11 +00:00
serenity/Tests/LibWeb/Layout/input
Andreas Kling 1ebae7a779 LibWeb: Stop changing width of block-level flex containers during layout
If the parent BFC can come up with a nice stretch-fit width for the flex
container, it will have already done so *before* even entering flex
layout. There's no need to do it again, midway through the flex layout
algorithm.

This wasn't just unnecessary, but we were also doing it incorrectly and
not taking margins into account when calculating the amount of available
space for stretch-fit. This led to oversized flex containers in the
presence of negative margins.

Fixes #18614
2023-05-08 15:56:00 +02:00
..
block-and-inline LibWeb: Zero out margins if width is not 'auto' in BFC's compute_width 2023-05-05 13:26:41 +02:00
flex LibWeb: Stop changing width of block-level flex containers during layout 2023-05-08 15:56:00 +02:00
grid LibWeb: Use layout-test-mode for layout tests 2023-05-08 14:47:52 +02:00
svg LibWeb: Layout <svg> nested inside <svg> 2023-04-19 07:52:26 +02:00
table LibWeb: Set width in compute_width_for_table_wrapper() 2023-05-07 06:31:53 +02:00
abspos-image-with-min-height-constraint.html LibWeb: Enforce min/max height constraints on abspos replaced boxes 2023-05-07 06:28:47 +02:00
acid1.html Tests/LibWeb: Add ACID1 as a layout test 2023-03-15 11:43:54 +01:00
automatic-height-of-non-replaced-abspos-element-must-not-be-negative.html LibWeb: Don't allow resolved height of abspos elements to become negative 2023-03-25 19:41:31 +01:00
automatic-width-of-non-replaced-abspos-element-must-not-be-negative.html LibWeb: Don't allow resolved width of abspos elements to become negative 2023-03-25 19:41:31 +01:00
blank.html Tests: Add LibWeb layout tests 2023-01-29 11:33:33 +00:00
blockify-layout-internal-box-without-crashing.html LibWeb: Implement more box type transformation edge cases 2023-05-03 16:04:30 +02:00
box-sizing-border-box-for-definite-sizes-without-layout.html LibWeb: Account for box-sizing:border-box in layout-less definite sizes 2023-05-02 11:47:13 +02:00
css-import-rule-sheet-1.css LibWeb: Actually incorporate style from imported style sheets 2023-03-12 18:10:32 +01:00
css-import-rule-sheet-2.css LibWeb: Actually incorporate style from imported style sheets 2023-03-12 18:10:32 +01:00
css-import-rule.html LibWeb: Actually incorporate style from imported style sheets 2023-03-12 18:10:32 +01:00
css-imported-sheet-with-media-rule.css LibWeb: Actually visit rules and media queries in imported style sheets 2023-03-30 16:54:15 +02:00
css-imported-sheet-with-media-rule.html LibWeb: Actually visit rules and media queries in imported style sheets 2023-03-30 16:54:15 +02:00
css-line-height-percentage-inheritance.html LibWeb: Resolve percentage line-height values before CSS inheritance 2023-03-12 18:10:32 +01:00
css-pseudo-element-blockification.html LibWeb: Blockify pseudo elements that are flex items 2023-04-27 18:29:02 +02:00
css-pseudo-element-should-not-be-affected-by-inline-style.html LibWeb: Don't apply element inline style to associated pseudo elements 2023-04-02 15:00:06 +02:00
css-pseudo-element-should-not-be-affected-by-presentational-hints.html LibWeb: Don't apply presentational hints to associated pseudo elements 2023-04-02 15:00:06 +02:00
flex-abspos-item-with-preceding-whitespace.html LibWeb: Don't put abspos grid/flex items in anonymous wrapper 2023-04-07 10:15:16 +02:00
flex-auto.html LibWeb: Add tests for flex formatting context 2023-02-11 10:42:52 +01:00
flex-column-constained-wrap.html LibWeb: Add tests for flex formatting context 2023-02-11 10:42:52 +01:00
flex-column-constrained-nowrap.html LibWeb: Add tests for flex formatting context 2023-02-11 10:42:52 +01:00
flex-column-height-constrained-width-constrained.html LibWeb: Add tests for flex formatting context 2023-02-11 10:42:52 +01:00
flex-column-height-constrained.html LibWeb: Add tests for flex formatting context 2023-02-11 10:42:52 +01:00
flex-column-height-unconstrained.html LibWeb: Rewrite FFC "resolve flexible lengths" algorithm from draft spec 2023-03-10 13:38:34 +01:00
flex-column-item-with-auto-height-and-max-width.html Tests/LibWeb: Test flex column item with auto height and max-width 2023-03-26 15:14:35 +02:00
flex-column-item-with-auto-height-depending-auto-width-with-max-width-constraint.html LibWeb: Clamp fit-content widths in flex layout to min/max-width 2023-03-28 21:08:54 +02:00
flex-column-item-with-auto-height-depending-on-auto-width.html LibWeb: Use fit-content width in place of indefinite flex item widths 2023-03-27 23:28:07 +02:00
flex-container-constrained-nowrap.html LibWeb: Add tests for flex formatting context 2023-02-11 10:42:52 +01:00
flex-container-constrained-wrap.html LibWeb: Add tests for flex formatting context 2023-02-11 10:42:52 +01:00
flex-container-width-constrained.html LibWeb: Add tests for flex formatting context 2023-02-11 10:42:52 +01:00
flex-frozen-items-should-be-respected.html LibWeb: Don't touch flex items after they we've been frozen 2023-03-11 11:52:19 +01:00
flex-grow-0-column.html LibWeb: Add tests for flex formatting context 2023-02-11 10:42:52 +01:00
flex-grow-1.html LibWeb: Add tests for flex formatting context 2023-02-11 10:42:52 +01:00
flex-grow-2.html LibWeb: Add tests for flex formatting context 2023-02-11 10:42:52 +01:00
flex-item-auto-height-with-wrap.html Tests/LibWeb: Add test for flex item auto height with flex-wrap: wrap 2023-03-26 15:14:35 +02:00
flex-item-on-row-with-intrinsic-aspect-ratio.html LibWeb: Use intrinsic aspect ratio when calculating max content height 2023-04-05 16:23:56 +02:00
flex-item-vertical-padding-relative-to-flex-container-width.html Tests/LibWeb: Use SerenitySans in new layout tests 2023-03-10 18:10:33 +01:00
flex-item-with-cyclic-percentage-height.html LibWeb: Treat flex item's cyclic percentage cross size as auto 2023-03-18 00:26:19 +01:00
flex-item-with-intrinsic-aspect-ratio.html LibWeb: Fix application of intrinsic aspect ratio to flex column items 2023-04-02 06:45:44 +02:00
flex-margin-auto-justify-content.html LibWeb: Don't overflow flex containers on margin auto 2023-03-11 10:46:21 +01:00
flex-row.html LibWeb: Add tests for flex formatting context 2023-02-11 10:42:52 +01:00
flex-shrink-1.html LibWeb: Add tests for flex formatting context 2023-02-11 10:42:52 +01:00
flex-shrink-2.html LibWeb: Add tests for flex formatting context 2023-02-11 10:42:52 +01:00
flex-shrink-3.html LibWeb: Add tests for flex formatting context 2023-02-11 10:42:52 +01:00
image-display-block-margin-auto.html LibWeb: Resolve horizontal auto margins for images with display: block 2023-04-30 05:52:19 +02:00
input-element-with-display-inline.html LibWeb: Don't crash on HTML input element with display: inline 2023-03-20 17:57:58 +01:00
lh-1.html Tests/LibWeb: Add two tests for lh and rlh units 2023-03-18 20:14:52 +01:00
lh-2.html Tests/LibWeb: Add two tests for lh and rlh units 2023-03-18 20:14:52 +01:00
link-sheet.css LibWeb: Support loading file:// URLs via fetch (through ResourceLoader) 2023-03-22 23:34:32 +00:00
link-sheet.html LibWeb: Support loading file:// URLs via fetch (through ResourceLoader) 2023-03-22 23:34:32 +00:00
overflow-x-hidden-with-border-radius.html LibWeb: Apply border-radius clip only if overflow hidden for both axis 2023-03-19 19:04:51 +01:00
position-absolute-from-edges.html LibWeb: Add layout tests for floats, margins collapsing and positioning 2023-02-06 20:42:14 +01:00
position-absolute-ignores-padding-of-position-relative-floating-parent.html Tests/LibWeb: Add layout test for layout fix in PR #15780 2023-03-28 19:45:00 +01:00
position-absolute-top-left.html LibWeb: Add layout tests for floats, margins collapsing and positioning 2023-02-06 20:42:14 +01:00
replaced-box-with-vertical-margins.html LibWeb/Tests: Remove image from a test 2023-03-14 18:49:37 +01:00
svg-preserve-aspect-ratio.html Tests: Add layout test for SVG preserveAspectRatio 2023-04-17 07:32:31 +02:00
svg-transforms-and-viewboxes.html Tests: Add layout test for SVG transforms and viewboxes 2023-04-12 07:40:22 +02:00
vertical-padding-relative-to-cb-width.html Tests/LibWeb: Use SerenitySans in new layout tests 2023-03-10 18:10:33 +01:00