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

Wrong output for subtraction before parentheses #49

Closed
matthias-t opened this issue May 10, 2018 · 2 comments
Closed

Wrong output for subtraction before parentheses #49

matthias-t opened this issue May 10, 2018 · 2 comments

Comments

@matthias-t
Copy link

matthias-t commented May 10, 2018

How to reproduce:

calc(1px - (2em + 3%))

Actual output:

calc(1px - 2em + 3%)

Expected output:

calc(1px - 2em - 3%)
@evvvritt
Copy link

This is a big issue as means it doesn't respect order or operations when using addition/subtraction with multiplication/division:

Input:

calc((100vw - 50em) / 2)

Output:

calc(50vw - 25em)

:-/

@andyjansson andyjansson mentioned this issue Oct 3, 2018
@andyjansson
Copy link
Contributor

Should be fixed in latest release.

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

No branches or pull requests

3 participants