Closed rokoroku closed 6 years ago
My result:
:root {
--iconSize: 14px;
--lineHeight: 1.75px;
--lineHeight: NaN;
}
I will investigate.
:root {
--iconSize: 14px;
--lineHeight: calc(var(--iconSize) * .125);
}
body {
line-height: var(--lineHeight)
}
gives
body {
line-height: 1.75px
}
in the playground, so it might be a recent bug.
Fixed in https://github.com/MoOx/reduce-css-calc/commit/483e3557190a767f2db244c3d9e1e00feeacae68
Just reinstall reduce-css-calc
dependency
with postcss-cssnext options
below css
results
It's weird, because orginal css
calc()
should work withvar()
too. However, multiplying var() is working well.So my current workaround is