Skip to content

NaN value when reducing division with custom property #44

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
Semigradsky opened this issue Nov 26, 2017 · 2 comments
Closed

NaN value when reducing division with custom property #44

Semigradsky opened this issue Nov 26, 2017 · 2 comments
Labels

Comments

@Semigradsky
Copy link
Member

Semigradsky commented Nov 26, 2017

MoOx/postcss-cssnext#427

Input:

:root {
    --foo: calc(var(--bar) / 8);
}

Output:

:root {
    --foo: NaN;
}
@Semigradsky Semigradsky changed the title NaN value when reduce division with custom property NaN value when reducing division with custom property Nov 26, 2017
Semigradsky added a commit that referenced this issue Nov 26, 2017
@Semigradsky
Copy link
Member Author

Fixed in MoOx/reduce-css-calc@483e355

@francoisromain
Copy link

francoisromain commented Apr 16, 2018

Hello
I still have this error and I don't understand how to fix it. Can you help?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants