No description
This PR fixes a bug where we suggest a canonicalization with a high precision number. E.g.: `w-[calc(100%/3.5)]` → `w-[28.571428571428573%]` While this is technically correct, it's also not as user friendly. This PR solves this issue by checking whether the result has a precision of `.xx` at most. If that's not the case, then we keep the original expression. Fixes: https://github.com/tailwindlabs/tailwindcss-intellisense/issues/1591 ## Test plan 1. Added an a regression test for this situation 2. Existing tests pass |
||
|---|---|---|
| .github | ||
| crates | ||
| integrations | ||
| packages | ||
| patches | ||
| playgrounds | ||
| scripts | ||
| .gitignore | ||
| .prettierignore | ||
| Cargo.lock | ||
| Cargo.toml | ||
| CHANGELOG.md | ||
| LICENSE | ||
| package.json | ||
| pnpm-lock.yaml | ||
| pnpm-workspace.yaml | ||
| README.md | ||
| rust-toolchain.toml | ||
| turbo.json | ||
| vitest.config.ts | ||
A utility-first CSS framework for rapidly building custom user interfaces.
Documentation
For full documentation, visit tailwindcss.com.
Community
For help, discussion about best practices, or feature ideas:
Discuss Tailwind CSS on GitHub
Contributing
If you're interested in contributing to Tailwind CSS, please read our contributing docs before submitting a pull request.