nano-css
nano-css copied to clipboard
unitless doesn't work with vcssom
When using vcssom addon, the unitless addon has no effect.
Yeah, currently cssom and vcssom addons are completely separate. But, I guess, it does make sense to integrate them with the rest of the addons.
This line should be changed to something like:
const declarations = renderer.decl(property, newDecl[property]).split(';');
for (var i = 0; i < declarations.length; i++) {
var parts = declarations[i].split(':');
style.setProperty(parts[0], parts[1]);
}