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

Resolve fallback variable #38

Closed asvny closed 8 years ago

asvny commented 8 years ago

Fix https://github.com/MadLittleMods/postcss-css-variables/issues/37

Resolve nested var(...) declarations.

MadLittleMods commented 8 years ago

The tests you added aren't run currently, add it to `test/test.js

Add separate tests for the following which currently fail.

 width: var(--missing, calc(var(--foo1) + var(--foo2)));
 width: var(--missing, var(--missing, var(--foo-default));

The nested resolution should be recursive resolve-value to handle any depth or value.

asvny commented 8 years ago

@MadLittleMods Oops I forgot to commit test/test.js .. I will check all the edge cases and update you

asvny commented 8 years ago

@MadLittleMods I have closed this pull for #39