tailwindcss/packages
Robin Malfait 448949318e
Fix inferring data type of border-[…] with multiple values (#17248)
This PR fixes an issue where arbitrary values such as
`border-[12px_4px]` were incorrectly producing `border-color` instead of
`border-width` values.

To solve it, I extended the `<line-width>` check to make sure that every
part of the value is a valid `<line-width>`.

In order for a `line-width` to be valid, every part should be one of:

1. A keyword: `thin`, `medium`, `thick`
2. A length: `12px`
3. A number: `0`

Fixes: #17221

# Test plan

1. Added test to verify this works
2. All existing tests pass
2025-03-17 12:35:55 +01:00
..
@tailwindcss-browser Prepare v4.0.14 release (#17173) 2025-03-13 12:36:34 +01:00
@tailwindcss-cli Prepare v4.0.14 release (#17173) 2025-03-13 12:36:34 +01:00
@tailwindcss-node Prepare v4.0.14 release (#17173) 2025-03-13 12:36:34 +01:00
@tailwindcss-postcss Prepare v4.0.14 release (#17173) 2025-03-13 12:36:34 +01:00
@tailwindcss-standalone Prepare v4.0.14 release (#17173) 2025-03-13 12:36:34 +01:00
@tailwindcss-upgrade Prepare v4.0.14 release (#17173) 2025-03-13 12:36:34 +01:00
@tailwindcss-vite Prepare v4.0.14 release (#17173) 2025-03-13 12:36:34 +01:00
internal-example-plugin Prefix internal modules with internal-* (#14074) 2024-07-29 10:58:07 -04:00
tailwindcss Fix inferring data type of border-[…] with multiple values (#17248) 2025-03-17 12:35:55 +01:00
tsconfig.base.json Improve debug logs (#15303) 2024-12-11 15:27:20 +01:00