-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Labels
Description
What version of Tailwind CSS are you using?
v4.0.14
What browser are you using?
iOS Safari 16.4
Reproduction URL
https://play.tailwindcss.com/K2JSaOKDJX
<p class="text-current/50">text</p>https://play.tailwindcss.com/V9jkBlLwU8
<input placeholder="text" />Describe your issue
Both of the examples above crash the webpage in Safari 16.4:
I don't know the full range of affected versions.
The trigger seems to be passing currentColor to color-mix(), I found more information about it here:
My second example above crashes because that exact combo is in preflight.css:
tailwindcss/packages/tailwindcss/preflight.css
Lines 291 to 294 in 50562a9
| ::placeholder { | |
| opacity: 1; /* 1 */ | |
| color: color-mix(in oklab, currentColor 50%, transparent); /* 2 */ | |
| } |
Maybe something like color(from currentColor srgb r g b / 50%) would work instead.