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

Issue with division with negative dividend #211

Closed
torkiljohnsen opened this issue Oct 29, 2014 · 1 comment
Closed

Issue with division with negative dividend #211

torkiljohnsen opened this issue Oct 29, 2014 · 1 comment

Comments

@torkiljohnsen
Copy link

Came across this oddity today. Libsass parsed this piece of code just fine, but scssphp had issues.

test.scss

$var: 2rem;
margin-left: -$var/2;
margin-right: -($var/2);

libsass output:

$var: 2rem;
margin-left: -1rem;
margin-right: -1rem;

scssphp 0.0.14 output:

$var: 2rem;
margin-left: -2rem/2; /* ooooops */
margin-right: -1rem;
@robocoder
Copy link
Collaborator

Merged to master

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

2 participants