Closed fivenp closed 6 years ago
That’s not where that regex is used. It’s used for everything between var(
and )
. See https://github.com/postcss/postcss-custom-properties/blob/master/index.js#L50
Are you using cssnext? You might be having other issues.
@fivenp, any chance you are experiencing this issue?
https://github.com/postcss/postcss-custom-properties/issues/99#issuecomment-367016271
Closing due to inactivity.
Just upgraded from 6.2 to 7.0 and the parsing of
color: color(var(--color-text));
breaks.This used to be parsed into
color: #000000
correctly with 6.2 With 7.0 the result actually iscolor: color(var(--color-text));
I guess the regex change over here might have caused this behaviour? https://github.com/postcss/postcss-custom-properties/commit/7cbf23941a5ca3294f291a068507e37e490fc92e