getStyles = function (element) {
  if (!element) {
    return null
  }

  return window.getComputedStyle ? getComputedStyle(element) : (element.currentStyle || null)
}
Returns style declarations for the element
@param {Element} element