Skip to content

Missing classes because of { boundary and new extractor #16999

Description

@iquito

What version of Tailwind CSS are you using?

v4.0.11

Reproduction

With the new extractor (#16306) the class h-4 and mx-4 is not picked up anymore when using the following Twig template content:

<div class="flex items-center mx-4{% if session.isValid %}{% else %} h-4{% endif %}"></div>

(See https://play.tailwindcss.com/w3SazyVehg for the example on Tailwind Play and the generated CSS)

I assume the { after h-4 and mx-4 is somehow not considered a (possible) boundary anymore. I think this is likely a bug, as many template languages use { and } as delimiters in some way, so the possibility of a boundary should be taken into account.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions