Skip to content

[Bug]: subtraction followed by a variable not normalized properly #429

@sibbng

Description

@sibbng

Reproduction

https://twind.run/baton-wound-radius?result=css

Describe the bug

Hi @sastan, in tailwindlabs/tailwindcss#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 tailwindlabs/tailwindcss#9832. I fixed this in tailwindlabs/tailwindcss#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

Metadata

Metadata

Assignees

No one assigned

    Labels

    🐞 BugBug or Bug fixes🛑 AbandonedThe issue or Pull Request will not be worked on

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions