postcss / postcss-custom-properties

Use Custom Properties in CSS
https://postcss.github.io/postcss-custom-properties
MIT License
596 stars 77 forks source link

Upgrade from 6.2 to 7.0 breaks var() parsing #98

Closed fivenp closed 6 years ago

fivenp commented 6 years ago

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 is color: 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

image

jonathantneal commented 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.

jonathantneal commented 6 years ago

@fivenp, any chance you are experiencing this issue?

https://github.com/postcss/postcss-custom-properties/issues/99#issuecomment-367016271

jonathantneal commented 6 years ago

Closing due to inactivity.