postcss / postcss-color-function

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

Ignore CSS custom properties in color(<color>) #34

Closed drewbourne closed 7 years ago

drewbourne commented 7 years ago

Fixes #4 by skipping any color functions that contain a var

MoOx commented 7 years ago

I should be something more generic that just send a message using postcss message api, not just related to var. If a resolution fail, we should throw a warning not just throw a fatal.

drewbourne commented 7 years ago

Ok, so instead of just skipping var, it should attempt to parse & convert the value, and if that fails then log a warning to the postcss result and leave the declaration unmodified?

MoOx commented 7 years ago

I guess :)

drewbourne commented 7 years ago

Closing this PR in favor of #35 and #36 to address the separate needs for turning errors into postcss warnings, and the need to skip color functions with custom properties.