postcss / postcss-color-function

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

Function is `color-mod()` not `color()` #43

Closed jonathantneal closed 6 years ago

jonathantneal commented 6 years ago

cssnext is out of date when it comes to color()

https://twitter.com/evaferreira92/status/905104662709272576

It seems, at a high level, the method name has changed from color() to color-mod().

jonathantneal commented 6 years ago

This may be resolved by the outcome of this discussion: https://github.com/ianstormtaylor/css-color-function/issues/29#issuecomment-335518678

jonathantneal commented 6 years ago

That discussion was not resolved, but all ambiguity over the name was cleared up in the working draft: https://drafts.csswg.org/css-color-4/#modifying-colors

kumarharsh commented 6 years ago

So, would this end up being changed to color-mod() in this library too?

jhpratt commented 6 years ago

@jonathantneal Any plans to alias it and deprecate color()?

jonathantneal commented 6 years ago

No, I went with the standard, and have used that name for some time.