From 73dd422d7c46e54d3570e4ad449cd99eba3b1346 Mon Sep 17 00:00:00 2001 From: Martijn Cuppens Date: Wed, 27 Nov 2024 14:25:32 +0100 Subject: [PATCH] Remove redundant line height from body --- .../src/__snapshots__/index.test.ts.snap | 4 ---- packages/tailwindcss/preflight.css | 8 -------- 2 files changed, 12 deletions(-) diff --git a/packages/@tailwindcss-postcss/src/__snapshots__/index.test.ts.snap b/packages/@tailwindcss-postcss/src/__snapshots__/index.test.ts.snap index 44635110668a..d4f872cfeb76 100644 --- a/packages/@tailwindcss-postcss/src/__snapshots__/index.test.ts.snap +++ b/packages/@tailwindcss-postcss/src/__snapshots__/index.test.ts.snap @@ -395,10 +395,6 @@ exports[`\`@import 'tailwindcss'\` is replaced with the generated CSS 1`] = ` -webkit-tap-highlight-color: transparent; } - body { - line-height: inherit; - } - hr { color: inherit; border-top-width: 1px; diff --git a/packages/tailwindcss/preflight.css b/packages/tailwindcss/preflight.css index f8fe93f22368..15f8082b220b 100644 --- a/packages/tailwindcss/preflight.css +++ b/packages/tailwindcss/preflight.css @@ -45,14 +45,6 @@ html, -webkit-tap-highlight-color: transparent; /* 7 */ } -/* - Inherit line-height from `html` so users can set them as a class directly on the `html` element. -*/ - -body { - line-height: inherit; -} - /* 1. Add the correct height in Firefox. 2. Correct the inheritance of border color in Firefox. (https://bugzilla.mozilla.org/show_bug.cgi?id=190655)