grid_template: accept a math-function track (min/max/clamp)#178
Open
samoht wants to merge 1 commit into
Open
Conversation
grid-cols-[min(50%,20rem)] and the like produced no rule: parse_track_keyword recognised only suffix-unit lengths and named tracks, so a math-function length track was dropped. Parse it through cascade as a Length track.
samoht
force-pushed
the
grid-cols-math-track
branch
from
July 27, 2026 02:18
73ccc23 to
7629a60
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
A grid track that is a CSS math function (
grid-cols-[min(50%,20rem)],grid-cols-[max(200px,50%)_1fr]) produced no rule:parse_track_keywordrecognised only suffix-unit lengths (px/rem/…) and named tracks, so amin()/max()/clamp()/calc()length track fell through. It now parses such a track through cascade as aLengthtrack. With #177 this closesgrid-cols-[min(50%,theme(spacing.80))_auto]on tailwindcss.com.