Skip to content

Commit 4aefd26

Browse files
authored
Don't reset ::first-letter in Preflight (#13408)
* Don't reset ::first-letter in Preflight * Update changelog --------- Co-authored-by: Adam Wathan <[email protected]>
1 parent a79fa45 commit 4aefd26

File tree

3 files changed

+2
-2
lines changed

3 files changed

+2
-2
lines changed

CHANGELOG.md

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

1212
- Enable Vite's `waitForRequestsIdle()` for client requests only ([#13394](https://github.com/tailwindlabs/tailwindcss/pull/13394))
13+
- Make sure `::first-letter` respectes `::selection` styles ([#13408](https://github.com/tailwindlabs/tailwindcss/pull/13408))
1314

1415
## [4.0.0-alpha.11] - 2024-03-27
1516

packages/@tailwindcss-postcss/src/__snapshots__/index.test.ts.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -406,7 +406,7 @@ exports[`\`@import 'tailwindcss'\` is replaced with the generated CSS 1`] = `
406406
}
407407
408408
@layer base {
409-
*, :after, :before, ::backdrop, :first-letter {
409+
*, :after, :before, ::backdrop {
410410
box-sizing: border-box;
411411
border: 0 solid;
412412
margin: 0;

packages/tailwindcss/preflight.css

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
::after,
99
::before,
1010
::backdrop,
11-
::first-letter,
1211
::file-selector-button {
1312
box-sizing: border-box; /* 1 */
1413
margin: 0; /* 2 */

0 commit comments

Comments
 (0)