twind
twind copied to clipboard
[Bug]: subtraction followed by a variable not normalized properly
Reproduction
https://twind.run/baton-wound-radius?result=css
Describe the bug
Hi @sastan, in https://github.com/tailwindlabs/tailwindcss/pull/4147 I contributed tailwindcss to fix some arbitrary values related issues. As I mentioned in the PR, I got this regex from twind project. But it has an edge case as reported in https://github.com/tailwindlabs/tailwindcss/issues/9832. I fixed this in https://github.com/tailwindlabs/tailwindcss/pull/10074. But I'm not sure if my solution is ideal or not. I wanted to let you know, the same issue also exists in twind. I can make a PR if you think my solution is good enough.
Severity
annoyance
System Info
-
Additional Information
No response