Skip to content

Invalid css transformation on build #15897

Open
@emirhangumus

Description

@emirhangumus

What version of Tailwind CSS are you using?

v4.0.0

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

svelte 5.19.2, tailwindcss/vite 4.0.0, vite 6.0.11

What version of Bun js are you using?

v1.2.0

What browser are you using?

Zen Browser (Firefox)

What operating system are you using?

Ubuntu 22.04

Reproduction URL

https://play.tailwindcss.com/czuZLwTt4a

Describe your issue

On development mode
On production mode

The bug is, i have a class like this lg:bg-[center_bottom_-15rem] and on development mode, tailwind puts all thing as is. When build the app, transformation is convert that into invalid status.
center turning into 50% and its invalid.
Expectation is, not creating a invalid value.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions