From e5c0b50cee89b37e7e1cbccef99966b49d1df62b Mon Sep 17 00:00:00 2001 From: Philipp Spiess Date: Thu, 20 Mar 2025 17:03:46 +0100 Subject: [PATCH] =?UTF-8?q?Revert=20"Don't=20use=20`color-mix(=E2=80=A6)`?= =?UTF-8?q?=20on=20`currentColor`=20(#17247)"=20and=20work=20around=20Pref?= =?UTF-8?q?light=20crash?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reverts commit d6d913ec39e2a4cc0a70e9d21c484c6ed95d40ae. --- CHANGELOG.md | 4 +- .../src/__snapshots__/index.test.ts.snap | 7 ++- packages/tailwindcss/preflight.css | 18 ++++++-- .../src/__snapshots__/index.test.ts.snap | 7 ++- .../src/__snapshots__/utilities.test.ts.snap | 18 ++++---- .../tailwindcss/src/compat/plugin-api.test.ts | 2 +- packages/tailwindcss/src/utilities.test.ts | 46 +++++++++---------- packages/tailwindcss/src/utilities.ts | 7 --- 8 files changed, 61 insertions(+), 48 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 65a27e21add9..c07c1de024f2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -24,9 +24,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Fix incorrect angle in `-bg-conic-*` utilities ([#17174](https://github.com/tailwindlabs/tailwindcss/pull/17174)) - Fix `border-[12px_4px]` being interpreted as a `border-color` instead of a `border-width` ([#17248](https://github.com/tailwindlabs/tailwindcss/pull/17248)) -- Use the `oklab(…)` function when applying opacity to `currentColor` to work around a crash in Safari 16.4 and 16.5 ([#17247](https://github.com/tailwindlabs/tailwindcss/pull/17247)) +- Work around a crash in Safari 16.4 and 16.5 when using the default Preflight styles ([#17306](https://github.com/tailwindlabs/tailwindcss/pull/17306)) - Pre-process `