Skip to content

Invalid CSS causes entire page to crash with STATUS_BREAKPOINT #17402

Open
@coscura

Description

@coscura

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?

postcss 8.5.3, React 18.3.1, Vite 6.0.3

What version of Node.js are you using?

v22.0.0

What browser are you using?

Chrome, Vivaldi, WebView2 (Tauri app)

What operating system are you using?

Windows

Reproduction URL

https://play.tailwindcss.com/Et6k9kAgbw

Describe your issue

I'm working with Tauri, Vite, React, and tailwindcss (with postcss transformer defined in vite.config.js). One specific class with 3 modifiers (file:disabled:dark:bg-green-500) generates some invalid CSS which in turn crashes the entire page with STATUS_BREAKPOINT, this happened to me on both Chrome and WebView2 on Windows. I have @custom-variant dark (&:is(.dark *)); in my css file, I copied a similar variant from tailwind docs and used it in the playground with the same error occurring. Removing the custom variant generates @media modifiers instead and fixes the issue.

Image

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