Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add the ability to specify track min and max sizes explicitly #25

Open
shyndman opened this issue Jan 16, 2021 · 0 comments
Open

Add the ability to specify track min and max sizes explicitly #25

shyndman opened this issue Jan 16, 2021 · 0 comments
Labels
enhancement New feature or request

Comments

@shyndman
Copy link
Owner

shyndman commented Jan 16, 2021

The improvements to the layout algorithm mean that allowing a user to explicitly set the min and max size for a track should be possible (similarly to how CSS' minmax() works).

In case I forget, here's an important paragraph for the track sizing algorithm.

If the track has an auto min track sizing function and the grid container is being sized under a min-/max-content constraint, set the track’s base size to the maximum of its items’ limited min-/max-content contributions (respectively), floored at zero. The limited min-/max-content contribution of an item is (for this purpose) its min-/max-content contribution (accordingly), limited by the max track sizing function (which could be the argument to a fit-content() track sizing function) if that is fixed and ultimately floored by its minimum contribution (defined below).

-https://www.w3.org/TR/css-grid-1/#algo-single-span-items

@shyndman shyndman added the enhancement New feature or request label Jan 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant