code: function getStyle(element) {
      const style = element.style;
      const styles = {};
      for (let i = 0; i < style.length; i++) {
          const name = style.item(i);
          const transformedName = transformName(name);
          styles[transformedName] = style.getPropertyValue(name);
      }
      return styles;
  }
docs: Builds the style object for the VNode.