-
Notifications
You must be signed in to change notification settings - Fork 34
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
Incorrect calc reduction of 0 - (A - B) / C
#88
Comments
bug, PR welcome |
jasminexie
added a commit
to jasminexie/postcss-calc
that referenced
this issue
Oct 1, 2019
jasminexie
added a commit
to jasminexie/postcss-calc
that referenced
this issue
Oct 1, 2019
alexander-akait
pushed a commit
that referenced
this issue
Oct 1, 2019
Hah, awesome! Thanks for picking this up @jasminexie 🎉 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Given the following CSS:
Which I expect to become:
Actually becomes the mathematically incorrect:
Calculations with the structure
0 - (A - B) / C
are incorrectly reduced to(-A - -B) - C
while the correct solve is(-A - -B) / C
.The text was updated successfully, but these errors were encountered: