1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 05:47:35 +00:00
serenity/Tests/LibWeb/Layout/input/grid
Aliaksandr Kalenik 4d8bc16812 LibWeb: Respect "auto flow" property in grid layout
Before this change, we only considering `grid-auto-flow` to determine
whether a row or column should be added when there was not enough space
in the implicit grid to fit the next unplaced item.

Now, we also choose the direction in which the "auto placement cursor"
is moved, based on the auto flow property.
2024-03-06 07:23:27 +01:00
..
abspos-item-aligned-center.html LibWeb: Support alignment of abspos grid items 2023-10-21 09:08:51 +02:00
abspos-item-with-grid-area.html LibWeb: Position abspos items inside grid relative to their grid area 2023-10-31 08:46:17 +01:00
abspos-item.html LibWeb: Support positioning of abspos boxes inside grid container 2023-08-08 11:31:35 +02:00
align-items.html LibWeb: Add support for align-items and align-self in CSS grid 2023-07-27 19:54:17 +02:00
align-self.html LibWeb: Add support for align-items and align-self in CSS grid 2023-07-27 19:54:17 +02:00
all-implicit-rows.html LibWeb: Use none as initial value for grid-template-column/rows 2023-06-07 14:13:07 +02:00
anonymous-inline-child.html LibWeb: Wrap child text sequences of grid container in anonymous blocks 2023-05-28 21:12:04 +02:00
auto-fill-and-named-line-placement.html LibWeb: Account for auto-fill/fit when expanding grid lines in GFC 2024-01-05 22:52:25 +01:00
auto-fill-rows.html LibWeb: Support auto-fill for rows in GFC 2024-01-07 11:12:35 +01:00
auto-fill.html LibWeb: Use layout-test-mode for layout tests 2023-05-08 14:47:52 +02:00
auto-fit-collapse-empty-tracks.html LibWeb: Set 0px fixed size to collapsed auto-fit tracks in GFC 2023-06-20 18:24:26 +02:00
auto-fit-empty-container.html LibWeb: Fix division by zero in auto-fit/fill track calculation in GFC 2023-12-16 19:39:44 +01:00
auto-fit.html LibWeb: Use layout-test-mode for layout tests 2023-05-08 14:47:52 +02:00
auto-flow-column-spanning-item.html LibWeb: Reset auto_placement_cursor_x after adding new column in GFC 2023-08-29 12:35:21 +02:00
auto-flow-column.html LibWeb/Layout: Add support for grid-auto-flow in GFC 2023-08-20 15:36:18 +02:00
auto-track-sizes.html LibWeb: Support grid-auto-columns and grid-auto-rows properties in GFC 2023-05-22 06:05:19 +02:00
basic-2.html LibWeb: Implement more of "Resolve Intrinsic Track Sizes" in GFC 2023-05-10 05:52:47 +02:00
basic.html LibWeb: Use layout-test-mode for layout tests 2023-05-08 14:47:52 +02:00
borders.html LibWeb: Fix off-by-one in CSS calc() "negate" operation 2023-05-17 07:40:17 +02:00
calc-track-size.html LibWeb: Parse calc() function in grid sizes 2023-05-11 18:36:56 +02:00
column-1fr-1fr.html LibWeb: Use auto minimimum size while resolving flexible tracks in GFC 2023-05-17 07:48:38 +02:00
column-auto-auto.html LibWeb: Skip non-spanning items sizing if there are no such items 2023-05-17 07:48:38 +02:00
columns-auto-fill-with-gap-2.html LibWeb: Fix auto-fill track counting to correctly handle gaps in GFC 2024-01-07 09:57:13 +01:00
columns-auto-fill-with-gap-3.html LibWeb: Fix accounting for gaps in auto-fit count calculation in GFC 2024-01-17 15:15:06 +01:00
columns-auto-fill-with-gap.html LibWeb: Account for gap in auto-fill columns count calculation in GFC 2024-01-05 22:52:25 +01:00
container-max-width-max-content.html LibWeb: Fix infinite recursion when grid has "max-width: max-content" 2024-02-21 10:06:19 +01:00
container-min-height.html LibWeb: Rerun rows sizings if grid auto height is less than min-height 2023-10-21 09:08:11 +02:00
css-calc-in-grid-position.html LibWeb/CSS: Support calc() in grid placement values 2024-01-17 17:26:55 +01:00
different-column-sizes.html LibWeb: Use layout-test-mode for layout tests 2023-05-08 14:47:52 +02:00
distribute-extra-space-across-spanned-tracks.html LibWeb: Consider all spanned tracks while finding extra space in GFC 2023-06-07 19:44:47 +02:00
float-container-columns-1fr-1fr.html LibWeb: Reset item_incurred_increase before distributing space in GFC 2023-05-16 07:47:47 +02:00
floating-item.html LibWeb: Float property should be ignored for grid items 2023-10-29 09:43:13 +01:00
floating-table-wrapper-width.html LibWeb: Set table wrapper width from the table box 2023-08-18 12:52:29 +02:00
grid-area-non-token-parts-crash.html LibWeb: Don't assume grid-area parts are Tokens 2023-11-22 09:45:51 +01:00
grid-column-non-token-parts-crash.html LibWeb: Don't assume grid-row/grid-column parts are Tokens 2023-11-22 09:45:51 +01:00
grid-container-min-height-border-box.html LibWeb: Respect box-sizing in min-height calculation of grid container 2023-12-26 11:13:38 +01:00
grid-gap-1.html Tests/LibWeb: Split input/grid/gap.html into smaller tests 2023-05-09 06:37:30 +02:00
grid-gap-2.html LibWeb: Fix off-by-one in CSS calc() "negate" operation 2023-05-17 07:40:17 +02:00
grid-gap-3.html Tests/LibWeb: Split input/grid/gap.html into smaller tests 2023-05-09 06:37:30 +02:00
grid-item-fixed-paddings.html LibWeb: Resolve grid item fixed size paddings in GFC 2023-05-19 06:12:05 +02:00
grid-item-fixed-size.html LibWeb: Resolve grid items preferred width in GFC 2023-05-11 18:37:06 +02:00
grid-item-horizontal-margins-auto.html LibWeb: Add support for horizontal margins of grid items in GFC 2023-06-08 07:14:47 +02:00
grid-item-min-size.html LibWeb: Flesh out basic support of min-width/height for grid items 2023-05-13 18:43:34 +02:00
grid-item-percentage-margins.html LibWeb: Resolve percentage padding and margins for grid items in GFC 2023-06-08 07:14:47 +02:00
grid-item-percentage-width-2.html LibWeb: Use grid item used width as available width during track sizing 2023-05-18 18:06:05 +02:00
grid-item-percentage-width.html LibWeb: Resolve grid items preferred width in GFC 2023-05-11 18:37:06 +02:00
grid-item-vertical-padding-and-margin-percentages.html LibWeb: Resolve grid item vertical margin/padding against CB width 2024-01-06 21:06:21 +01:00
grid-item-with-fit-content-width.html LibWeb: Support grid items with fit-content width :^) 2023-05-27 05:47:54 +02:00
grid-row-height-affected-by-item-margins.html LibWeb: Use grid item *outer* size when calculating minimum contribution 2023-06-12 17:51:08 +02:00
grid-row-start-non-token-parts-crash.html LibWeb: Don't assume grid-line parts are Tokens 2023-11-22 09:45:51 +01:00
grid-shorthand-property.html LibWeb: Add basic parsing of grid shorthand CSS property 2023-05-27 05:47:14 +02:00
grid-span-4.html LibWeb: Remove hardcoded span = 2 while sizing spanning items in GFC 2023-08-04 12:41:11 +02:00
grid-template-areas-basics.html Tests/LibWeb: Split input/grid/template-areas.html into smaller tests 2023-05-09 06:37:30 +02:00
grid-template-columns-with-min-css-function.html LibWeb: Support more CSS functions in grid track size lists 2023-06-12 17:51:08 +02:00
grid-template.html LibWeb: Use layout-test-mode for layout tests 2023-05-08 14:47:52 +02:00
grow-beyond-limits.html LibWeb: Implement distributing space to tracks beyond limits in GFC 2023-06-22 06:48:12 +02:00
image-in-grid.html LibWeb: Use layout-test-mode for layout tests 2023-05-08 14:47:52 +02:00
implicit-lines.html LibWeb: Add support for implicit grid lines formed by grid areas in GFC 2024-01-08 09:28:37 +01:00
inline-grid-simple.html LibWeb: Create Layout::Box for display: inline-grid 2023-07-11 19:15:17 +02:00
intrinsic-sized-column.html LibWeb: Use layout-test-mode for layout tests 2023-05-08 14:47:52 +02:00
intrinsic-sized-grid-2.html LibWeb: Return grid container width from automatic_content_width in GFC 2023-05-13 12:53:25 +02:00
intrinsic-sized-grid.html LibWeb: Use layout-test-mode for layout tests 2023-05-08 14:47:52 +02:00
intrinsic-sizing-should-account-for-gaps.html LibWeb: Account for gaps in grid container's intrinsic size calculation 2024-01-16 21:54:23 +01:00
item-align-self-center-and-max-height.html LibWeb: Add support for grid item's min-height and max-height in GFC 2023-10-29 08:46:51 +01:00
item-align-self-center-and-min-height.html LibWeb: Add support for grid item's min-height and max-height in GFC 2023-10-29 08:46:51 +01:00
item-column-span-2.html LibWeb: Consider span > 1 while getting available space for items in GFC 2023-05-17 15:55:14 +02:00
item-fit-content-width.html LibWeb: Handle fit-content in calculate_max_content_contribution in GFC 2023-10-26 08:37:42 +02:00
item-max-width.html LibWeb: Resolve grid item's min-width and max-width in GFC 2023-10-24 07:25:20 +02:00
item-min-width.html LibWeb: Resolve grid item's min-width and max-width in GFC 2023-10-24 07:25:20 +02:00
item-span-exceeds-columns-size.html LibWeb: Adjust grid columns size to fit spanning items 2023-07-13 16:54:53 +02:00
item-with-box-sizing-border-box.html LibWeb: Account for box-sizing in grid-items width calculation 2023-11-02 07:37:11 +01:00
item-with-min-width-and-place-self-start.html LibWeb: Fix box alignment when it has min-width or max-width in GFC 2023-10-27 07:14:34 +02:00
items-min-content-size-should-account-paddings.html LibWeb: Use max content contribution in flex_fraction in GFC 2023-10-24 07:26:25 +02:00
justify-content.html LibWeb: Add support for start, center and end justify-content in GFC 2024-01-04 09:47:20 +01:00
justify-items.html LibWeb: Respect justify-items property of grid container 2023-07-15 05:50:51 +02:00
justify-self.html LibWeb: Respect justify-self property of grid items 2023-07-14 15:48:58 +02:00
justify-start-min-width.html LibWeb: Use root content width as automatic width if children inline 2023-08-10 05:10:44 +02:00
line-placement-with-repeat.html LibWeb: Fix grid line name placement when repeat() is used 2024-01-05 13:21:09 +01:00
max-width-grid-container-wrapper-in-max-content.html LibWeb: Redo "tracks maximize" if initial run is over max-size in GFC 2023-12-26 19:19:50 +01:00
min-max-content.html LibWeb: Use layout-test-mode for layout tests 2023-05-08 14:47:52 +02:00
minmax-1.html Tests/LibWeb: Split input/grid/minmax.html into smaller tests 2023-05-09 06:37:30 +02:00
minmax-2.html LibWeb: Align GridFormattingContext::run_track_sizing() with the spec 2023-05-09 06:37:30 +02:00
minmax-3.html Tests/LibWeb: Split input/grid/minmax.html into smaller tests 2023-05-09 06:37:30 +02:00
minmax-auto-track-definition.html LibWeb: Expand minmax in grid tracks defined by grid-auto-rows/columns 2023-06-12 06:33:51 +02:00
minmax-invalid-1.html Tests/LibWeb: Split input/grid/minmax.html into smaller tests 2023-05-09 06:37:30 +02:00
minmax-non-token-contents-crash.html LibWeb: Don't assume grid size is always Function or Token 2023-11-22 09:45:51 +01:00
minmax-with-max-function-inside.html LibWeb: Support CSS functions other than calc() for grid sizes 2023-06-21 06:14:51 +02:00
negative-grid-item-column-index.html LibWeb: Add support for grid items with negative column-start in GFC 2023-06-07 11:37:11 +02:00
order.html LibWeb: Support "order" property for items in GridFormattingContext 2023-08-09 18:01:36 +02:00
place-items-center-nested-grids.html LibWeb: Use containing block width to measure fit-content width in GFC 2023-08-27 05:11:55 +02:00
place-items-center.html LibWeb: Add support for "place-items" CSS property 2023-07-17 18:58:05 +02:00
place-self.html LibWeb: Add place-self css property support 2023-08-06 08:26:36 +02:00
placement-1.html Tests/LibWeb: Split grid/positions-and-spans.html into smaller tests 2023-08-24 20:18:00 +02:00
placement-2.html Tests/LibWeb: Split grid/positions-and-spans.html into smaller tests 2023-08-24 20:18:00 +02:00
placement-3.html Tests/LibWeb: Split grid/positions-and-spans.html into smaller tests 2023-08-24 20:18:00 +02:00
placement-4.html Tests/LibWeb: Split grid/positions-and-spans.html into smaller tests 2023-08-24 20:18:00 +02:00
placement-5.html LibWeb: Respect "auto flow" property in grid layout 2024-03-06 07:23:27 +01:00
placement-6.html LibWeb: Respect "auto flow" property in grid layout 2024-03-06 07:23:27 +01:00
placement-7.html LibWeb: Respect "auto flow" property in grid layout 2024-03-06 07:23:27 +01:00
placement-8.html LibWeb: Respect "auto flow" property in grid layout 2024-03-06 07:23:27 +01:00
placement-9.html LibWeb: Respect "auto flow" property in grid layout 2024-03-06 07:23:27 +01:00
placement-10.html LibWeb: Respect "auto flow" property in grid layout 2024-03-06 07:23:27 +01:00
placement-using-named-tracks-1.html LibWeb: Define if identifier represent area or line during layout [GFC] 2023-08-28 09:19:41 +02:00
placement-using-named-tracks-2.html LibWeb: Define if identifier represent area or line during layout [GFC] 2023-08-28 09:19:41 +02:00
placement-using-named-tracks-3.html LibWeb: Define if identifier represent area or line during layout [GFC] 2023-08-28 09:19:41 +02:00
relpos-grid-item.html LibWeb: Resolve used insets for grid items 2023-07-04 06:43:53 +02:00
repeat-auto-fit-fill-cannot-have-auto.html LibWeb: Ignore repeat(auto-fit/auto-fill, auto) as it is not allowed 2024-02-11 17:51:50 +01:00
repeat-non-token-contents-crash.html LibWeb: Don't assume repeat() contents are Tokens 2023-11-22 09:45:51 +01:00
repeat.html LibWeb: Use layout-test-mode for layout tests 2023-05-08 14:47:52 +02:00
replaced-item-1.html LibWeb: Call prepare_for_replaced_layout() on replaced boxes in GFC 2023-10-31 07:08:30 +01:00
row-1fr.html LibWeb: Use item minimum contribution while sizing "fr" track in GFC 2023-08-01 16:25:10 +02:00
row-height.html LibWeb: Use layout-test-mode for layout tests 2023-05-08 14:47:52 +02:00
row-span-2-maxcontent.html LibWeb: Implement more of spanning tracks sizing in GFC 2023-05-21 11:59:19 +02:00
row-span-2-mincontent.html LibWeb: Implement more of spanning tracks sizing in GFC 2023-05-21 11:59:19 +02:00
row-span-2-with-gaps.html LibWeb: Include gaps in for_each_spanned_track_by_item in GFC 2023-06-10 07:08:01 +02:00
row-span-2.html LibWeb: Start implementing sizing for tracks with span > 1 items in GFC 2023-05-14 19:32:34 +02:00
rows-1fr-1fr.html LibWeb: Implement more of "Expand Flexible Tracks" in GFC 2023-05-17 07:48:38 +02:00
should-not-cause-infinite-spinning-in-space-distribution.html LibWeb: Fix infinite spinning while distributing extra space in GFC 2023-08-04 19:00:02 +02:00
should-not-hang-in-size-distribution.html LibWeb: Fix infinite loop in GFC growth limit distribution 2023-09-20 18:28:11 +02:00
stretch-auto-tracks.html LibWeb: Align with spec "stretch auto tracks" step in GFC 2024-01-16 13:13:47 +01:00
template-areas-1.html LibWeb: Fix building of areas spanning multiple rows in GFC 2023-10-22 19:38:18 +02:00
template-areas-2.html LibWeb: Fix building of areas spanning multiple rows in GFC 2023-10-22 19:38:18 +02:00
template-areas-3.html LibWeb: Fix building of areas spanning multiple rows in GFC 2023-10-22 19:38:18 +02:00
template-lines-and-areas.html Tests/LibWeb: Split input/grid/template-areas.html into smaller tests 2023-05-09 06:37:30 +02:00
track-size-calc-with-percentage.html LibWeb: Fix crashing when grid track size is calc() with percentage 2023-06-02 19:02:31 +02:00
two-items-spanning-one-1fr-row.html LibWeb: Reset planned_increase while distributing space to "fr" tracks 2023-08-03 17:05:57 +02:00
unresolvable-percentage-track.html LibWeb: Treat unresolvable percentages as auto to resolve sizes in GFC 2023-05-28 20:26:05 +02:00
valid-grid-areas-1.html Tests/LibWeb: Split input/grid/template-areas.html into smaller tests 2023-05-09 06:37:30 +02:00
vertical-margins-auto.html LibWeb: Support auto vertical margins for grid items 2023-07-21 21:09:45 +02:00