Skip to content
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Ensure the CSS `theme()` function handles newlines and tabs in its arguments list ([#14917](https://github.com/tailwindlabs/tailwindcss/pull/14917))
- Don't unset keys like `--inset-shadow-*` when unsetting keys like `--inset-*` ([#14906](https://github.com/tailwindlabs/tailwindcss/pull/14906))
- Ensure spacing utilities with no value (e.g. `px` or `translate-y`) don't generate CSS ([#14911](https://github.com/tailwindlabs/tailwindcss/pull/14911))
- Don't override user-agent background color for input elements in Preflight ([#14913](https://github.com/tailwindlabs/tailwindcss/pull/14913))
- Don't attempt to convert CSS variables (which should already be percentages) to percentages when used as opacity modifiers ([#14916](https://github.com/tailwindlabs/tailwindcss/pull/14916))
- _Upgrade (experimental)_: Install `@tailwindcss/postcss` next to `tailwindcss` ([#14830](https://github.com/tailwindlabs/tailwindcss/pull/14830))
- _Upgrade (experimental)_: Remove whitespace around `,` separator when print arbitrary values ([#14838](https://github.com/tailwindlabs/tailwindcss/pull/14838))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -467,7 +467,6 @@ exports[`\`@import 'tailwindcss'\` is replaced with the generated CSS 1`] = `
font-variation-settings: inherit;
letter-spacing: inherit;
color: inherit;
background: none;
}

::file-selector-button {
Expand All @@ -476,7 +475,6 @@ exports[`\`@import 'tailwindcss'\` is replaced with the generated CSS 1`] = `
font-variation-settings: inherit;
letter-spacing: inherit;
color: inherit;
background: none;
}

input:where(:not([type="button"], [type="reset"], [type="submit"])), select, textarea {
Expand All @@ -485,10 +483,12 @@ exports[`\`@import 'tailwindcss'\` is replaced with the generated CSS 1`] = `

button, input:where([type="button"], [type="reset"], [type="submit"]) {
appearance: button;
background: none;
}

::file-selector-button {
appearance: button;
background: none;
}

:-moz-focusring {
Expand Down
21 changes: 11 additions & 10 deletions packages/tailwindcss/preflight.css
Original file line number Diff line number Diff line change
Expand Up @@ -175,8 +175,7 @@ table {
}

/*
1. Inherit the font styles in all browsers.
2. Remove the default background color.
Inherit font styles in all browsers.
*/

button,
Expand All @@ -185,12 +184,11 @@ optgroup,
select,
textarea,
::file-selector-button {
font: inherit; /* 1 */
font-feature-settings: inherit; /* 1 */
font-variation-settings: inherit; /* 1 */
letter-spacing: inherit; /* 1 */
color: inherit; /* 1 */
background: transparent; /* 2 */
font: inherit;
font-feature-settings: inherit;
font-variation-settings: inherit;
letter-spacing: inherit;
color: inherit;
}

/*
Expand All @@ -204,12 +202,15 @@ textarea {
}

/*
Correct the inability to style the border radius in iOS Safari.
1. Remove the default background color of buttons by default.
2. Correct the inability to style the border radius in iOS Safari.
*/

button,
input:where([type='button'], [type='reset'], [type='submit']),
::file-selector-button {
appearance: button;
background: transparent; /* 1 */
appearance: button; /* 2 */
}

/*
Expand Down