-
-
Notifications
You must be signed in to change notification settings - Fork 322
wrong output with calc() #742
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
Comments
Bug in postcss calc |
I just encountered the same issue: initial code: I see this bug was already reported in 2019 is some actually picking this up? Btw for such complex behavior as redefining calculations, it would be a good thing to define some unit tests as this is easily broken. |
@alexander-akait Could you provide issue number in postcss-calc? Is this already fixed? |
|
Fixed in cssnano 5.0.15. calc(0.7 * 560 * (1220px - 100vw) / 1220 + 0.1 * 560 * (1220px - 50vw) / 1220) now returns calc(448px - 34.42623vw) |
initial state
correct minimization
actual minimization
The text was updated successfully, but these errors were encountered: