Skip to content

css variables within calc hang #2

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

Closed
Swatinem opened this issue Aug 9, 2014 · 3 comments
Closed

css variables within calc hang #2

Swatinem opened this issue Aug 9, 2014 · 3 comments

Comments

@Swatinem
Copy link

Swatinem commented Aug 9, 2014

When i use postcss-calc without prior using postcss-custom-properties, the process just hangs.

Try it like this:

var postcss = require("postcss")
var calc = require("postcss-calc")

var css = postcss()
  .use(calc())
  .process('a {width: calc(var(--foo) + 10px);}')
  .css

If I remove the var() or first resolve it via postcss-custom-properties, it works fine

@MoOx
Copy link
Contributor

MoOx commented Aug 9, 2014

I'll just fix that asap (ignore in that case)

MoOx added a commit to MoOx/reduce-css-calc that referenced this issue Aug 10, 2014
@MoOx MoOx closed this as completed in 483dcb5 Aug 10, 2014
@MoOx
Copy link
Contributor

MoOx commented Aug 10, 2014

Should be fixed in v2.0.1

@MoOx
Copy link
Contributor

MoOx commented Aug 10, 2014

If you want more information about why, please checkout referenced commits in this thread ;)

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