Skip to content

Conversation

@RobinMalfait
Copy link
Member

@RobinMalfait RobinMalfait commented Oct 23, 2025

This PR essentially reverts #19069

We added the nested & inside the @supports query when we create fallbacks for color-mix so that devtools (Safari) doesn't freak out. This works in most cases, however, if you have a parent pseudo element like ::before, then the browser will not allow the nested & resulting in invalid CSS.

This PR means that we go back to the broken devtools experience in Safari, but at least the CSS is valid and works as expected.

Fixes: #19183

The `&` nested inside of `@supports` is necessary for devtools. However,
if you have a parent pseudo `::before` or `::placeholder`, then this
will cause issues because that's not allowed.
@RobinMalfait RobinMalfait requested a review from a team as a code owner October 23, 2025 09:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[tailwindcss/vite@4.1.15] Color regression in dev

2 participants