Skip to content

Conversation

@uhobnil
Copy link

@uhobnil uhobnil commented Dec 25, 2024

ParserError occurs when a css variable is multiplied by a negative number in React App.

@hyrious
Copy link
Collaborator

hyrious commented Dec 25, 2024

FYI a{width:calc(var(--s)*-1)} is a valid CSS and modern browsers / processors (like PostCSS, SASS) all support it. I'm ok to support some old toolchain / runtime if a single byte's change is enough.

@uhobnil
Copy link
Author

uhobnil commented Dec 25, 2024

FYI a{width:calc(var(--s)*-1)} is a valid CSS and modern browsers / processors (like PostCSS, SASS) all support it. I'm ok to support some old toolchain / runtime if a single byte's change is enough.

You were right

It seems that my version of react is low

a single byte's change is enough, It would be nice to support some old toolchains

@sindresorhus
Copy link
Owner

Sorry, I don't plan to support older toolchains. It's enough work with this project for modern ones. It may seem like a simple thing, but ever added line of code add maintenance overhead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants