Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: ParserError occurs when a css variable is multiplied by a negative number #43

Closed
wants to merge 1 commit into from

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