postcss / postcss-custom-properties

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

Var in string not working since 8.0.0 #154

Closed henryruhs closed 5 years ago

henryruhs commented 5 years ago

This code use to work in 7.0.0

--rs-image-teaser: 974;

--rs-url-teaser-small: url('https://cdn.domain.com/unsplash/var(--rs-image-teaser)/small.jpg');
--rs-url-teaser-medium: url('https://cdn.domain.com/unsplash/var(--rs-image-teaser)/medium.jpg');
--rs-url-teaser-large: url('https://cdn.domain.com/unsplash/var(--rs-image-teaser)/large.jpg');

But since 8.0.0 it does not transform var(--rs-image-teaser) inside the url strings.

jonathantneal commented 5 years ago

While that’s cool it ever worked to begin with, that probably should not have worked worked before.

henryruhs commented 5 years ago

I close this issue because I think this is not part of the official specs.