You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Tailwind CSS generates invalid CSS calc(infinity * 1px) for the w-full, h-full, min-w-full, and min-h-full utilities, causing a PostCSS lexical error.
Where it happened:
packages/tailwindcss/src/utilities.ts
To Reproduce
Create a Tailwind CSS project.
Use the w-full or h-full utility class in your HTML.
Run your build process.
Expected behavior
Tailwind CSS should generate valid CSS for the full utilities.
Actual behavior
Tailwind CSS generates calc(infinity * 1px), causing a PostCSS error:
version = v4.0.15
A Tailwind Play link or public GitHub repo that includes a minimal reproduction of the bug. Please do not link to your actual project, what we need instead is a minimal reproduction in a fresh project without any unnecessary code. This means it doesn't matter if your real project is private/confidential, since we want a link to a separate, isolated reproduction anyways.
A reproduction is required when filing an issue — any issue opened without a reproduction will be closed and you'll be asked to create a new issue that includes a reproduction. We're a small team and we can't keep up with the volume of issues we receive if we need to reproduce each issue from scratch ourselves.
Describe your issue
Describe the problem you're seeing, any important steps to reproduce and what behavior you expect instead.
The text was updated successfully, but these errors were encountered:
najmudheenm
changed the title
Invalid CSS 'infinity * 1px' generated in full utilities
Invalid CSS 'infinity * 1px' generated in utilities
Mar 22, 2025
najmudheenm
changed the title
Invalid CSS 'infinity * 1px' generated in utilities
Invalid CSS 'infinity * 1px' generated in full utilities
Mar 22, 2025
najmudheenm
changed the title
Invalid CSS 'infinity * 1px' generated in full utilities
Invalid CSS 'infinity * 1px' generated in full utilities [v4.0.15]
Mar 22, 2025
@babur001 Seems like you're on really outdated tooling here. It's unclear which package throws this issue but upstream tools have been changed to add support for that a while ago, see: #15936
Describe the bug
Tailwind CSS generates invalid CSS
calc(infinity * 1px)
for thew-full
,h-full
,min-w-full
, andmin-h-full
utilities, causing a PostCSS lexical error.Where it happened:
packages/tailwindcss/src/utilities.ts
To Reproduce
w-full
orh-full
utility class in your HTML.Expected behavior
Tailwind CSS should generate valid CSS for the full utilities.
Actual behavior
Tailwind CSS generates
calc(infinity * 1px)
, causing a PostCSS error:version = v4.0.15
A Tailwind Play link or public GitHub repo that includes a minimal reproduction of the bug. Please do not link to your actual project, what we need instead is a minimal reproduction in a fresh project without any unnecessary code. This means it doesn't matter if your real project is private/confidential, since we want a link to a separate, isolated reproduction anyways.
A reproduction is required when filing an issue — any issue opened without a reproduction will be closed and you'll be asked to create a new issue that includes a reproduction. We're a small team and we can't keep up with the volume of issues we receive if we need to reproduce each issue from scratch ourselves.
Describe your issue
Describe the problem you're seeing, any important steps to reproduce and what behavior you expect instead.
The text was updated successfully, but these errors were encountered: