Skip to content

grid_template: accept a math-function track (min/max/clamp)#178

Open
samoht wants to merge 1 commit into
mainfrom
grid-cols-math-track
Open

grid_template: accept a math-function track (min/max/clamp)#178
samoht wants to merge 1 commit into
mainfrom
grid-cols-math-track

Conversation

@samoht

@samoht samoht commented Jul 26, 2026

Copy link
Copy Markdown
Owner

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_keyword recognised only suffix-unit lengths (px/rem/…) and named tracks, so a min()/max()/clamp()/calc() length track fell through. It now parses such a track through cascade as a Length track. With #177 this closes grid-cols-[min(50%,theme(spacing.80))_auto] on tailwindcss.com.

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
samoht force-pushed the grid-cols-math-track branch from 73ccc23 to 7629a60 Compare July 27, 2026 02:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant