nano-css icon indicating copy to clipboard operation
nano-css copied to clipboard

unitless doesn't work with vcssom

Open hnordt opened this issue 6 years ago • 1 comments

When using vcssom addon, the unitless addon has no effect.

hnordt avatar Apr 17 '19 01:04 hnordt

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]);
}

streamich avatar Apr 17 '19 11:04 streamich