From 4aefd26f44cbb5ede9bc02c00085e97550d0953e Mon Sep 17 00:00:00 2001 From: Adam Wathan Date: Sat, 30 Mar 2024 08:06:53 -0400 Subject: [PATCH] Don't reset ::first-letter in Preflight (#13408) * Don't reset ::first-letter in Preflight * Update changelog --------- Co-authored-by: Adam Wathan <4323180+adamwathan@users.noreply.github.com> --- CHANGELOG.md | 1 + .../@tailwindcss-postcss/src/__snapshots__/index.test.ts.snap | 2 +- packages/tailwindcss/preflight.css | 1 - 3 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index dc68ba053..80ca115a0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Fixed - Enable Vite's `waitForRequestsIdle()` for client requests only ([#13394](https://github.com/tailwindlabs/tailwindcss/pull/13394)) +- Make sure `::first-letter` respectes `::selection` styles ([#13408](https://github.com/tailwindlabs/tailwindcss/pull/13408)) ## [4.0.0-alpha.11] - 2024-03-27 diff --git a/packages/@tailwindcss-postcss/src/__snapshots__/index.test.ts.snap b/packages/@tailwindcss-postcss/src/__snapshots__/index.test.ts.snap index 0a6802a4b..2378be457 100644 --- a/packages/@tailwindcss-postcss/src/__snapshots__/index.test.ts.snap +++ b/packages/@tailwindcss-postcss/src/__snapshots__/index.test.ts.snap @@ -406,7 +406,7 @@ exports[`\`@import 'tailwindcss'\` is replaced with the generated CSS 1`] = ` } @layer base { - *, :after, :before, ::backdrop, :first-letter { + *, :after, :before, ::backdrop { box-sizing: border-box; border: 0 solid; margin: 0; diff --git a/packages/tailwindcss/preflight.css b/packages/tailwindcss/preflight.css index 0a1911a62..8138927d8 100644 --- a/packages/tailwindcss/preflight.css +++ b/packages/tailwindcss/preflight.css @@ -8,7 +8,6 @@ ::after, ::before, ::backdrop, -::first-letter, ::file-selector-button { box-sizing: border-box; /* 1 */ margin: 0; /* 2 */