// TODO: Add support for setting styles

export default function css(node) {
  return window.getComputedStyle(node);
}

@@ -1,80 +1,677 @@
 /
-/ TODO: Add support for setting styles%0A%0Aexport default function css(node) %7B
+**%0A * Get current styling of a HTML element and optionally set given style first%0A * @param  %7BHTMLElement%7D elm - HTML Element to get the style from%0A * @param  %7BObject%7D style - %5Boptional%5D Styling to set on the elment%0A * @return %7BObject%7D - Current styling on the element%0A */%0Aexport default function css(elm, style) %7B%0A  // If styles are defined, then add them to the elments inline style%0A  if(style) %7B%0A    // Go through each style%0A    Object.keys(style).forEach((key) =%3E %7B%0A      // camelCase the key%0A      const camelKey = key.replace(/-%5Ba-z%5D/gi, (m) =%3E m%5B1%5D.toUpperCase());%0A      // Set the style%0A      elm.style%5BcamelKey%5D = style%5Bkey%5D;%0A    %7D);%0A  %7D%0A%0A  // return current style
 %0A  r
@@ -704,12 +704,11 @@
 yle(
-node
+elm
 );%0A%7D

Update 'css' script to also be able to set styles