postcss / postcss-color-function

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

Why is this missing from postcss-preset-env? #53

Closed lambert-velir closed 5 years ago

lambert-velir commented 5 years ago

Hi!

This package looks awesome and I'd like to use it in my day to day! Though, I'm confused about its position in the css world. I see that there are a bunch of browsers that already support this with prefixing (https://www.caniuse.com/#feat=css-color-adjust), so autoprefixer should take care of those, but what about edge/ie? I'm also noticing that it was a part of cssnext.io (http://cssnext.io/features/#color-function) but I don't see it in post-css-env (https://preset-env.cssdb.org/features). What's the status with this?

Thanks!

lambert-velir commented 5 years ago

Welp, to answer my own question, after further research, according to (https://moox.io/blog/deprecating-cssnext/), this repo was removed in favor of postcss-color-mod-function (https://github.com/jonathantneal/postcss-color-mod-function). And looking at that repo, it seems that it's been deprecated.

color-mod() has been removed from the draft of Color Module Level 4 specification.

Sooo, I guess we won't see this functionality in css anytime soon :(