1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 03:37:34 +00:00
serenity/Tests/LibWeb/Layout
Aliaksandr Kalenik ced862e16f LibWeb: Consolidate track sizing code for rows and columns in GFC
Although the algorithm for sizing tracks (rows or columns) is defined
once for both dimensions in the specification
(https://www.w3.org/TR/css-grid-2/#algo-track-sizing), we have
implemented it twice separately for sizing rows and columns.

In addition to code duplication, another issue is that these
implementations of the same algorithm have already diverged in some
places, and this divergence is likely to become even worse as our
implementation evolves.

This change unifies code for both dimension into one method that runs
track sizing.

While this change brings a bit of collateral damange (border.html and
minmax.html got changes in layout snaphots) it ultimately brings more
benefits because now we can evolve layout for both rows and colums
without duplicating the code :)
2023-05-06 07:01:27 +02:00
..
expected LibWeb: Consolidate track sizing code for rows and columns in GFC 2023-05-06 07:01:27 +02:00
input LibWeb: Zero out margins if width is not 'auto' in BFC's compute_width 2023-05-05 13:26:41 +02:00
layout_test.sh Tests/LibWeb: Time limit layout tests 2023-04-21 11:00:21 +01:00