MadLittleMods / postcss-css-variables

PostCSS plugin to transform CSS Custom Properties(CSS variables) syntax into a static representation
https://madlittlemods.github.io/postcss-css-variables/playground/
Other
536 stars 62 forks source link

The words "polyfill" and "shim" in the README are misleading #1

Closed MoOx closed 9 years ago

MoOx commented 9 years ago

This is a polyfill for custom props/css vars.

https://github.com/Polymer/polymer/blob/0.8-preview/PRIMER.md#custom-css-properties

You plugin isn't at all.

MadLittleMods commented 9 years ago

It provides future functionality by transforming variables into a static representation. I also prefaced it with "limited subset" because it does handle plenty of situations just fine.

Because CSS is a passive-type language, there is no way to get full functionality out of just CSS. While this plugin doesn't fit the exact concise definition, the keywords help people find this page who are looking for a solution.

A shim is a library that brings a new API to an older environment, using only the means of that environment.

Speaking JavaScript by Axel Rauschmayer

MoOx commented 9 years ago

A shim is a library that brings a new API to an older environment, using only the means of that environment.

That my point, seeing the opened issues, you don't bring the new API at all. Just small pieces. And you forget the dynamic part (because we cannot) :p

MadLittleMods commented 9 years ago

I think the language now is pretty clear and functionality is fairly comparable to the real thing in many situations.