-
Notifications
You must be signed in to change notification settings - Fork 34
Negative value? #87
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
Please provide full css code, i can't understand problem |
What you expected from |
I multiply by -1 so that the result should be negative, ie -3.25em. But it is positive, which should not be, since it is multiplied by -1. |
I still can't understand problem. What should be negative but positive now? |
I have a css variable with the value 3.25em and I just want to negate it. |
I think problem in your code, i can't find here problem |
Just to elucidate this problem, @evilebottnawi... Multiplying any number by a negative number switches its positivity. Which means @QJan84's code, which is multiplying If there's anything I can do to help get a release out with the fix, please let me know. This is not a minor bug. |
@alecmarcus I tried this code: |
The react-spectrum team at Adobe ran into this issue too. I wrote a postcss-calc test to try to reproduce this and it passed. I think this is an interaction with another library. In our code we found |
I cannot find a clear reproduction or even what the issue is. |
This
calc(-1 * var(--space-xl));
should be a negative value.... but the -1 is ignored!The output is 3.25em but should be -3.25em.
CSS:
Gulp Task:
Any ideas?
The text was updated successfully, but these errors were encountered: