Skip to content

calc() broken in v4: Invalid property value, expected type "<length> | <percentage>" #14277

Closed
@probablykasper

Description

@probablykasper

What version of Tailwind CSS are you using?

For example: 4.0.0-alpha.20

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

For example: Vite 5.4.2

What version of Node.js are you using?

For example: v20.15.0

What browser are you using?

For example: Brave

What operating system are you using?

For example: macOS

Reproduction URL

https://play.tailwindcss.com/CLyjwhj0qQ

Describe your issue

The same code does work in v3. Setting the CSS variable's syntax property from "<length> | <percentage>" to "<length-percentage>" fixes it.

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