Closed asvny closed 7 years ago
Sorry for the slight delay. According to the spec, it looks like this should work but I can see that postcss-css-variables
doesn't substitute it properly at the moment.
if the var() function has a fallback value as its second argument, replace the var() function by the fallback value. If there are any var() references in the fallback, substitute them as well.
Feel free to make a PR :grinning:
@MadLittleMods I have made a pull request .. please review and then accept ... thank u !
Published in v0.7.0 https://github.com/MadLittleMods/postcss-css-variables/blob/master/CHANGELOG.md#v070---2017-3-12 (also on npm)
Thanks @asvny and @marklu for the contributions 😍
Just a spec clarification , are we allowed to refer fallback as another var ie
var(--color-2)
from rootI expect output to be
but the current output is