Skip to content

Arbituray Value using Clamp() doesn't work if there is a negative value #12318

Closed
@rexsoi

Description

@rexsoi

What version of Tailwind CSS are you using?
v3.3.3

What build tool (or framework if it abstracts the build tool) are you using?
postcss 8.4.31, postcss-cli 10.1.0, webpack 5.89.0

What version of Node.js are you using?
v16.14.0

What browser are you using?
Chrome 118.0.5993.118

What operating system are you using?
Windows 10

Reproduction URL
Can't provide URL of the project. But it can be replicated on TailwindPlay
https://play.tailwindcss.com/BuKHeMD2uv
on Line 18 mt-[clamp(0.25rem,-0.6731rem+4.1026vw,4.25rem)]

I'm Using this Font-size Clamp Generator.
Screenshot of Configuration: https://snipboard.io/zXFA3o.jpg

Describe your issue
mt-[clamp(0.25rem,-0.6731rem+4.1026vw,4.25rem)]
It add space to "-"
Screenshot: https://snipboard.io/SEMTQZ.jpg

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