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

Allow whitespace within var function #27

Closed colinmeinke closed 5 years ago

colinmeinke commented 8 years ago

Input:

:root { --foo: red; }
.bar { color: var( --foo ); }

Expected output:

.bar { color: red; }

Actual output:

.bar { color: var( --foo ); }
MadLittleMods commented 8 years ago

Thanks for the report, just tested in Firefox which allows this. I can't exactly find it in the spec but I am sure it is laid out somewhere down the rabbit hole: https://drafts.csswg.org/css-variables/#syntax

benwest commented 5 years ago

93