Skip to content

Arbitrary values for 'grid-cols' generate incorrect CSS #12654

Closed
@utherpally

Description

@utherpally

What version of Tailwind CSS are you using?

v3.4.0

What build tool (or framework if it abstracts the build tool) are you using?

@solidjs/start 0.4.2

What version of Node.js are you using?

v18.19.0

What browser are you using?

Firefox

What operating system are you using?

Linux (NixOS 24.05.20231211.a9bf124)

Reproduction URL

Tailwind Play link

Describe your issue

<div class="grid-cols-[[full-width-start]_minmax(1rem,1fr)_[content-start]_min(100%-2rem,60rem)_[content-end]_minmax(1rem,1fr)_[full-width-end]]" />

CSS generated:

grid-template-columns: [full-width-start] minmax(1rem,1fr) [content - start] min(100% - 2rem,60rem) [content - end] minmax(1rem,1fr) [full-width-end];

Expected:

No spaces in content - start and content - end

grid-template-columns: [full-width-start] minmax(1rem,1fr) [content-start] min(100% - 2rem,60rem) [content-end] minmax(1rem,1fr) [full-width-end];

Related #12281

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions