MadLittleMods/postcss-css-variables

Parenthesis problem

Opened this issue · 1 comments

When using rgba fallbacks for CSS variables, output is wrong:

:root{
    --color: rgba(0,0,0,0.5);
}
p{
    color: var(--color, rgba(0,0,0,0.5));
}

is transformed into (notice two parentheses on the right):

p{
    color: rgba(0,0,0,0.5));
}

Any way around that?

Hey @Mangatt, I am guessing #112 will probably solve your problem. Stay tuned there for progress