Skip to content

Arbitrary calc values with mixed units not working for translate-* and -translate-* in 4.0.0-beta.2 #15188

@andmoreduro

Description

@andmoreduro

What version of Tailwind CSS are you using?

v4.0.0-beta.2

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

vite 5.4.10

What version of Node.js are you using?

v23.2.0

What browser are you using?

Chrome

What operating system are you using?

Windows

Reproduction URL

https://play.tailwindcss.com/7XtFHjJECp

Describe your issue

When using arbitrary values for translate-* and -translate-*, operations in calc() that involve multiple units (e.g., calc(50%+0.75rem)) are not applied correctly or not at all.

Metadata

Metadata

Assignees

No one assigned

    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