Skip to content

Razor pre-processing issue with @@ #17424

Closed
@senneclaeskens

Description

@senneclaeskens

What version of Tailwind CSS are you using?

v4.0.17

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

Tailwind CLI

What version of Node.js are you using?

v22.12.0

What browser are you using?

Chrome

What operating system are you using?

Windows

Reproduction URL

https://github.com/senneclaeskens/tailwind4-repro

Tailwind play: https://play.tailwindcss.com/alK9PzyzWY

Describe your issue

As explained here: #17022 (comment)

The first element should also have a red background.

Image

Generated html by razor:

Image

Source code:

Image

I'm not saying this is a tailwind issue, but in v3 we could use a content transformer in combination with this syntax in razor: @("@"). This would always render one @, which would make the CSS work correctly.

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