function getOffsetParent(element) {
  // NOTE: 1 DOM access here
  var offsetParent = element.offsetParent
  return offsetParent === root.document.body || !offsetParent
    ? root.document.documentElement
    : offsetParent
}
Returns the offset parent of the given element
@function
@ignore
@argument {Element} element
@returns {Element} offset parent