postcss / postcss-color-function

PostCSS plugin to transform W3C CSS color function to more compatible CSS
MIT License
323 stars 31 forks source link

Support color(rgb(36, 72, 99), a(90%)) #21

Closed onlywei closed 8 years ago

onlywei commented 8 years ago

If I'm using https://github.com/postcss/postcss-simple-vars, and my code looks like:

$myColor: rgb(36, 72, 99);

.foo {
  color: color($myColor, a(90%));
}

And I run my postcss-simple-vars processor before this one, shouldn't it transform into:

.foo {
  color: color(rgb(36, 72, 99), a(90%));
}

Any reason why it wouldn't work from here?

onlywei commented 8 years ago

OK I figured it out. I'm not supposed to use a comma between the color and a(90%)