postcss / postcss-color-function

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

Feat/options #55

Closed ar53n closed 5 years ago

ar53n commented 5 years ago

Hi everybody, i have same problem https://github.com/postcss/postcss-color-function/issues/49, but I am using postcss-color-function with postcss-css-variables But unfortunately the browser does not handle as expected. I think we can delete declarations with custom properties like a option.

expect:

.box {
  background-color: rgb(255, 128, 128); /* browser use that value */
  background-color: color(var(--red) tint(50%)); /* error value and browser skip it */
}

behavior:

.box {
  background-color: rgb(255, 128, 128); /* browser skip that value */
  background-color: color(var(--red) tint(50%)); /* work but not correct */
}
jonathantneal commented 5 years ago

@ar53n, while I don’t do regular maintainance on this plugin, this PR is clean, and I will merge it. Follow up with me if you would like a minor release.

ar53n commented 5 years ago

@jonathantneal hello, can we to do minor or patch release for package?