MoOx / postcss-cssnext

`postcss-cssnext` has been deprecated in favor of `postcss-preset-env`.

Home Page:https://moox.io/blog/deprecating-cssnext/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Using variable in rgba is not interpolated correctly

pherrymason opened this issue · comments

commented

Having a hexadecimal color defined in a variable:

:root {
   --color: #001f3f;
}

and using it with rgba does not give me the expected result:

.style {
    background: rgba(var(--color), .5);
}

The output I get is:

.style {
     background: rgba(#001f3f, .5);
}
commented

Will try, thanks!