Skip to content

Commit bde5e4b

Browse files
Don't use color-mix(…) on currentColor
1 parent 1a88518 commit bde5e4b

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
2121
### Fixed
2222

2323
- Fix incorrect angle in `-bg-conic-*` utilities ([#17174](https://github.com/tailwindlabs/tailwindcss/pull/17174))
24+
- Ensure the default preflight styles don't crash Safari 16.4 and 16.5 when a placeholder is used.
2425

2526
## [4.0.14] - 2025-03-13
2627

packages/tailwindcss/preflight.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -285,12 +285,12 @@ textarea,
285285

286286
/*
287287
1. Reset the default placeholder opacity in Firefox. (https://github.com/tailwindlabs/tailwindcss/issues/3300)
288-
2. Set the default placeholder color to a semi-transparent version of the current text color.
288+
2. Set the default placeholder color to a semi-transparent version of the current text color. We use the `oklab(…)` function to work around an issue in Safari 16.4 and 16.5. (https://github.com/tailwindlabs/tailwindcss/issues/17194)
289289
*/
290290

291291
::placeholder {
292292
opacity: 1; /* 1 */
293-
color: color-mix(in oklab, currentColor 50%, transparent); /* 2 */
293+
color: oklab(from currentColor l a b / 50%); /* 2 */
294294
}
295295

296296
/*

0 commit comments

Comments
 (0)