1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 14:28:12 +00:00
serenity/Tests/LibWeb/Layout/expected/grid
Aliaksandr Kalenik cfcc459140 LibWeb: Fix grid line name placement when repeat() is used
Before this change, parsed grid-template-columns/grid-template-rows
were represented as two lists: line names and track sizes. The problem
with this approach is that it erases the relationship between tracks
and their names, which results in unnecessarily complicated code that
restores this data (incorrectly if repeat() is involved) during layout.
This change solves that by representing line definitions as a list of
sizes and names in the order they were defined.

Visual progression https://genius.com/
2024-01-05 13:21:09 +01:00
..
abspos-item-aligned-center.txt LibWeb: Support alignment of abspos grid items 2023-10-21 09:08:51 +02:00
abspos-item-with-grid-area.txt LibWeb: Position abspos items inside grid relative to their grid area 2023-10-31 08:46:17 +01:00
abspos-item.txt LibWeb: Add ViewportPaintable to represent viewports in the paint tree 2023-08-20 05:02:59 +02:00
align-items.txt LibWeb: Add ViewportPaintable to represent viewports in the paint tree 2023-08-20 05:02:59 +02:00
align-self.txt LibWeb: Add ViewportPaintable to represent viewports in the paint tree 2023-08-20 05:02:59 +02:00
all-implicit-rows.txt LibWeb: Add ViewportPaintable to represent viewports in the paint tree 2023-08-20 05:02:59 +02:00
anonymous-inline-child.txt LibWeb: Add ViewportPaintable to represent viewports in the paint tree 2023-08-20 05:02:59 +02:00
auto-fill.txt LibWeb: Add ViewportPaintable to represent viewports in the paint tree 2023-08-20 05:02:59 +02:00
auto-fit-collapse-empty-tracks.txt LibWeb: Add ViewportPaintable to represent viewports in the paint tree 2023-08-20 05:02:59 +02:00
auto-fit-empty-container.txt LibWeb: Fix division by zero in auto-fit/fill track calculation in GFC 2023-12-16 19:39:44 +01:00
auto-fit.txt LibWeb: Add ViewportPaintable to represent viewports in the paint tree 2023-08-20 05:02:59 +02:00
auto-flow-column-spanning-item.txt LibWeb: Reset auto_placement_cursor_x after adding new column in GFC 2023-08-29 12:35:21 +02:00
auto-flow-column.txt LibWeb/Layout: Add support for grid-auto-flow in GFC 2023-08-20 15:36:18 +02:00
auto-track-sizes.txt LibWeb: Add ViewportPaintable to represent viewports in the paint tree 2023-08-20 05:02:59 +02:00
basic-2.txt LibWeb: Add ViewportPaintable to represent viewports in the paint tree 2023-08-20 05:02:59 +02:00
basic.txt LibWeb: Add ViewportPaintable to represent viewports in the paint tree 2023-08-20 05:02:59 +02:00
borders.txt LibWeb: Add ViewportPaintable to represent viewports in the paint tree 2023-08-20 05:02:59 +02:00
calc-track-size.txt LibWeb: Add ViewportPaintable to represent viewports in the paint tree 2023-08-20 05:02:59 +02:00
column-1fr-1fr.txt LibWeb: Add ViewportPaintable to represent viewports in the paint tree 2023-08-20 05:02:59 +02:00
column-auto-auto.txt LibWeb: Add ViewportPaintable to represent viewports in the paint tree 2023-08-20 05:02:59 +02:00
container-min-height.txt LibWeb: Rerun rows sizings if grid auto height is less than min-height 2023-10-21 09:08:11 +02:00
different-column-sizes.txt LibWeb: Add ViewportPaintable to represent viewports in the paint tree 2023-08-20 05:02:59 +02:00
distribute-extra-space-across-spanned-tracks.txt LibWeb: Add ViewportPaintable to represent viewports in the paint tree 2023-08-20 05:02:59 +02:00
float-container-columns-1fr-1fr.txt LibWeb: Add ViewportPaintable to represent viewports in the paint tree 2023-08-20 05:02:59 +02:00
floating-item.txt LibWeb: Float property should be ignored for grid items 2023-10-29 09:43:13 +01:00
floating-table-wrapper-width.txt LibWeb: Add ViewportPaintable to represent viewports in the paint tree 2023-08-20 05:02:59 +02:00
grid-area-non-token-parts-crash.txt LibWeb: Don't assume grid-area parts are Tokens 2023-11-22 09:45:51 +01:00
grid-column-non-token-parts-crash.txt 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.txt LibWeb: Respect box-sizing in min-height calculation of grid container 2023-12-26 11:13:38 +01:00
grid-gap-1.txt LibWeb: Add ViewportPaintable to represent viewports in the paint tree 2023-08-20 05:02:59 +02:00
grid-gap-2.txt LibWeb: Add ViewportPaintable to represent viewports in the paint tree 2023-08-20 05:02:59 +02:00
grid-gap-3.txt LibWeb: Add ViewportPaintable to represent viewports in the paint tree 2023-08-20 05:02:59 +02:00
grid-item-fixed-paddings.txt LibWeb: Add ViewportPaintable to represent viewports in the paint tree 2023-08-20 05:02:59 +02:00
grid-item-fixed-size.txt LibWeb: Add ViewportPaintable to represent viewports in the paint tree 2023-08-20 05:02:59 +02:00
grid-item-horizontal-margins-auto.txt LibWeb: Perform rounding when dividing CSSPixels 2023-09-05 14:50:45 +02:00
grid-item-min-size.txt LibWeb: Add ViewportPaintable to represent viewports in the paint tree 2023-08-20 05:02:59 +02:00
grid-item-percentage-margins.txt LibWeb: Add ViewportPaintable to represent viewports in the paint tree 2023-08-20 05:02:59 +02:00
grid-item-percentage-width-2.txt LibWeb: Add ViewportPaintable to represent viewports in the paint tree 2023-08-20 05:02:59 +02:00
grid-item-percentage-width.txt LibWeb: Add ViewportPaintable to represent viewports in the paint tree 2023-08-20 05:02:59 +02:00
grid-item-with-fit-content-width.txt LibWeb: Add ViewportPaintable to represent viewports in the paint tree 2023-08-20 05:02:59 +02:00
grid-row-height-affected-by-item-margins.txt LibWeb: Add ViewportPaintable to represent viewports in the paint tree 2023-08-20 05:02:59 +02:00
grid-row-start-non-token-parts-crash.txt LibWeb: Don't assume grid-line parts are Tokens 2023-11-22 09:45:51 +01:00
grid-shorthand-property.txt LibWeb: Add ViewportPaintable to represent viewports in the paint tree 2023-08-20 05:02:59 +02:00
grid-span-4.txt LibWeb: Entirely and exactly distribute grids' extra space to tracks 2023-09-05 14:50:45 +02:00
grid-template-areas-basics.txt LibWeb: Add ViewportPaintable to represent viewports in the paint tree 2023-08-20 05:02:59 +02:00
grid-template-columns-with-min-css-function.txt LibWeb: Add ViewportPaintable to represent viewports in the paint tree 2023-08-20 05:02:59 +02:00
grid-template.txt LibWeb: Add ViewportPaintable to represent viewports in the paint tree 2023-08-20 05:02:59 +02:00
grow-beyond-limits.txt LibWeb: Add ViewportPaintable to represent viewports in the paint tree 2023-08-20 05:02:59 +02:00
image-in-grid.txt LibWeb: Perform rounding when dividing CSSPixels 2023-09-05 14:50:45 +02:00
inline-grid-simple.txt LibWeb: Add ViewportPaintable to represent viewports in the paint tree 2023-08-20 05:02:59 +02:00
intrinsic-sized-column.txt LibWeb: Add ViewportPaintable to represent viewports in the paint tree 2023-08-20 05:02:59 +02:00
intrinsic-sized-grid-2.txt LibWeb: Add ViewportPaintable to represent viewports in the paint tree 2023-08-20 05:02:59 +02:00
intrinsic-sized-grid.txt LibWeb: Add ViewportPaintable to represent viewports in the paint tree 2023-08-20 05:02:59 +02:00
item-align-self-center-and-max-height.txt 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.txt 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.txt LibWeb: Perform rounding when dividing CSSPixels 2023-09-05 14:50:45 +02:00
item-fit-content-width.txt LibWeb: Handle fit-content in calculate_max_content_contribution in GFC 2023-10-26 08:37:42 +02:00
item-max-width.txt LibWeb: Resolve grid item's min-width and max-width in GFC 2023-10-24 07:25:20 +02:00
item-min-max-percentage-width.txt LibWeb: Add ViewportPaintable to represent viewports in the paint tree 2023-08-20 05:02:59 +02:00
item-min-width.txt 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.txt LibWeb: Add ViewportPaintable to represent viewports in the paint tree 2023-08-20 05:02:59 +02:00
item-with-box-sizing-border-box.txt 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.txt 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.txt LibWeb: Use max content contribution in flex_fraction in GFC 2023-10-24 07:26:25 +02:00
justify-content.txt LibWeb: Add support for start, center and end justify-content in GFC 2024-01-04 09:47:20 +01:00
justify-items.txt LibWeb: Perform rounding when dividing CSSPixels 2023-09-05 14:50:45 +02:00
justify-self.txt LibWeb: Perform rounding when dividing CSSPixels 2023-09-05 14:50:45 +02:00
justify-start-min-width.txt LibWeb: Add ViewportPaintable to represent viewports in the paint tree 2023-08-20 05:02:59 +02:00
line-placement-with-repeat.txt 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.txt LibWeb: Redo "tracks maximize" if initial run is over max-size in GFC 2023-12-26 19:19:50 +01:00
min-max-content.txt LibWeb: Resolve block max-width percentage against containing block 2023-10-29 19:35:02 +01:00
minmax-1.txt LibWeb: Add ViewportPaintable to represent viewports in the paint tree 2023-08-20 05:02:59 +02:00
minmax-2.txt LibWeb: Add ViewportPaintable to represent viewports in the paint tree 2023-08-20 05:02:59 +02:00
minmax-3.txt LibWeb: Add ViewportPaintable to represent viewports in the paint tree 2023-08-20 05:02:59 +02:00
minmax-auto-track-definition.txt LibWeb: Add ViewportPaintable to represent viewports in the paint tree 2023-08-20 05:02:59 +02:00
minmax-invalid-1.txt LibWeb: Add ViewportPaintable to represent viewports in the paint tree 2023-08-20 05:02:59 +02:00
minmax-non-token-contents-crash.txt LibWeb: Don't assume grid size is always Function or Token 2023-11-22 09:45:51 +01:00
minmax-with-max-function-inside.txt LibWeb: Add ViewportPaintable to represent viewports in the paint tree 2023-08-20 05:02:59 +02:00
negative-grid-item-column-index.txt LibWeb: Add ViewportPaintable to represent viewports in the paint tree 2023-08-20 05:02:59 +02:00
order.txt LibWeb: Add ViewportPaintable to represent viewports in the paint tree 2023-08-20 05:02:59 +02:00
place-items-center-nested-grids.txt LibWeb: Use containing block width to measure fit-content width in GFC 2023-08-27 05:11:55 +02:00
place-items-center.txt LibWeb: Add ViewportPaintable to represent viewports in the paint tree 2023-08-20 05:02:59 +02:00
place-self.txt LibWeb: Perform rounding when dividing CSSPixels 2023-09-05 14:50:45 +02:00
placement-1.txt LibWeb: Use more CSSPixelFractions in GFC::expand_flexible_tracks 2023-09-18 18:02:51 +02:00
placement-2.txt LibWeb: Use more CSSPixelFractions in GFC::expand_flexible_tracks 2023-09-18 18:02:51 +02:00
placement-3.txt Tests/LibWeb: Split grid/positions-and-spans.html into smaller tests 2023-08-24 20:18:00 +02:00
placement-4.txt Tests/LibWeb: Split grid/positions-and-spans.html into smaller tests 2023-08-24 20:18:00 +02:00
placement-using-named-tracks-1.txt LibWeb: Define if identifier represent area or line during layout [GFC] 2023-08-28 09:19:41 +02:00
placement-using-named-tracks-2.txt LibWeb: Define if identifier represent area or line during layout [GFC] 2023-08-28 09:19:41 +02:00
placement-using-named-tracks-3.txt LibWeb: Define if identifier represent area or line during layout [GFC] 2023-08-28 09:19:41 +02:00
relpos-grid-item.txt LibWeb: Add ViewportPaintable to represent viewports in the paint tree 2023-08-20 05:02:59 +02:00
repeat-non-token-contents-crash.txt LibWeb: Don't assume repeat() contents are Tokens 2023-11-22 09:45:51 +01:00
repeat.txt LibWeb: Add ViewportPaintable to represent viewports in the paint tree 2023-08-20 05:02:59 +02:00
replaced-item-1.txt LibWeb: Call prepare_for_replaced_layout() on replaced boxes in GFC 2023-10-31 07:08:30 +01:00
row-1fr.txt LibWeb: Add ViewportPaintable to represent viewports in the paint tree 2023-08-20 05:02:59 +02:00
row-height.txt LibWeb: Add ViewportPaintable to represent viewports in the paint tree 2023-08-20 05:02:59 +02:00
row-span-2-maxcontent.txt LibWeb: Add ViewportPaintable to represent viewports in the paint tree 2023-08-20 05:02:59 +02:00
row-span-2-mincontent.txt LibWeb: Add ViewportPaintable to represent viewports in the paint tree 2023-08-20 05:02:59 +02:00
row-span-2-with-gaps.txt LibWeb: Limit affected size of grid tracks instead of only increase 2023-09-05 14:50:45 +02:00
row-span-2.txt LibWeb: Add ViewportPaintable to represent viewports in the paint tree 2023-08-20 05:02:59 +02:00
rows-1fr-1fr.txt LibWeb: Add ViewportPaintable to represent viewports in the paint tree 2023-08-20 05:02:59 +02:00
should-not-cause-infinite-spinning-in-space-distribution.txt LibWeb: Entirely and exactly distribute grids' extra space to tracks 2023-09-05 14:50:45 +02:00
should-not-hang-in-size-distribution.txt LibWeb: Fix infinite loop in GFC growth limit distribution 2023-09-20 18:28:11 +02:00
template-areas-1.txt LibWeb: Fix building of areas spanning multiple rows in GFC 2023-10-22 19:38:18 +02:00
template-areas-2.txt LibWeb: Fix building of areas spanning multiple rows in GFC 2023-10-22 19:38:18 +02:00
template-areas-3.txt LibWeb: Fix building of areas spanning multiple rows in GFC 2023-10-22 19:38:18 +02:00
template-lines-and-areas.txt LibWeb: Disambiguate GridTrackPlacement API 2023-08-26 13:16:17 +02:00
track-size-calc-with-percentage.txt LibWeb: Add ViewportPaintable to represent viewports in the paint tree 2023-08-20 05:02:59 +02:00
two-items-spanning-one-1fr-row.txt LibWeb: Add ViewportPaintable to represent viewports in the paint tree 2023-08-20 05:02:59 +02:00
unresolvable-percentage-track.txt LibWeb: Add ViewportPaintable to represent viewports in the paint tree 2023-08-20 05:02:59 +02:00
valid-grid-areas-1.txt LibWeb: Add ViewportPaintable to represent viewports in the paint tree 2023-08-20 05:02:59 +02:00
vertical-margins-auto.txt LibWeb: Add ViewportPaintable to represent viewports in the paint tree 2023-08-20 05:02:59 +02:00