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

Negating values broken in 2.X #32

Closed
alexlafroscia opened this issue Sep 6, 2017 · 6 comments
Closed

Negating values broken in 2.X #32

alexlafroscia opened this issue Sep 6, 2017 · 6 comments

Comments

@alexlafroscia
Copy link

alexlafroscia commented Sep 6, 2017

The following CSS transform used to work in 1.X

/* source */
foo {
  left: calc(-(100px - 10px));
}
/* expected */
foo {
  left: -90px;
}

However, as of 2.X, this just throws an error.

If you past the source example above into http://cssnext.io/playground/, you can see that nothing is produced (which I take to mean it couldn't compile).

@lkraav
Copy link

lkraav commented Sep 10, 2017

Try multiplying with -1 instead.

@alexlafroscia
Copy link
Author

Sure, that works and is what I did. But what used to work should continue to work, too.

@lkraav
Copy link

lkraav commented Sep 17, 2017

Sure, that works and is what I did. But what used to work should continue to work, too.

Yep. But looks like nobody has the time to find and patch the root cause.

@MoOx
Copy link
Owner

MoOx commented Sep 19, 2017

Can you take a look at #31 guys?

@andyjansson
Copy link
Contributor

But what used to work should continue to work, too.

It never worked in browsers. The fact that it used to work in the plugin was the result of a bug.

@Semigradsky
Copy link
Collaborator

@alexlafroscia

foo {
  left: calc(-(100px - 10px));
}

This is incorrect calc expression. Looks like this breaking in major version update is ok.

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

5 participants