Skip to content

Commit 1564bf0

Browse files
Remove redundant line-height from body (#15212)
It was added in #2729 to override line heights set on the body by modern-normalize. However, it appears that modern-normalize never included any line-height definitions—only a font-family rule was present. Ref: https://github.com/sindresorhus/modern-normalize/blob/v1.1.0/modern-normalize.css --------- Co-authored-by: Philipp Spiess <[email protected]>
1 parent d7c8116 commit 1564bf0

File tree

3 files changed

+1
-12
lines changed

3 files changed

+1
-12
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
2626
- Fix `border-[12px_4px]` being interpreted as a `border-color` instead of a `border-width` ([#17248](https://github.com/tailwindlabs/tailwindcss/pull/17248))
2727
- 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))
2828
- Pre-process `<template lang="…">` in Vue files ([#17252](https://github.com/tailwindlabs/tailwindcss/pull/17252))
29+
- Remove redundant `line-height: initial` from Preflight ([#15212](https://github.com/tailwindlabs/tailwindcss/pull/15212))
2930

3031
## [4.0.14] - 2025-03-13
3132

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

-4
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,6 @@ exports[`\`@import 'tailwindcss'\` is replaced with the generated CSS 1`] = `
4343
-webkit-tap-highlight-color: transparent;
4444
}
4545
46-
body {
47-
line-height: inherit;
48-
}
49-
5046
hr {
5147
height: 0;
5248
color: inherit;

packages/tailwindcss/preflight.css

-8
Original file line numberDiff line numberDiff line change
@@ -45,14 +45,6 @@ html,
4545
-webkit-tap-highlight-color: transparent; /* 7 */
4646
}
4747

48-
/*
49-
Inherit line-height from `html` so users can set them as a class directly on the `html` element.
50-
*/
51-
52-
body {
53-
line-height: inherit;
54-
}
55-
5648
/*
5749
1. Add the correct height in Firefox.
5850
2. Correct the inheritance of border color in Firefox. (https://bugzilla.mozilla.org/show_bug.cgi?id=190655)

0 commit comments

Comments
 (0)