docs: function getOffsetParent(node){
      var offsetParent = node.offsetParent || documentElement;
  
      while (offsetParent && offsetParent !== documentElement && getComputedStyle(offsetParent, 'position') == 'static')
        offsetParent = offsetParent.offsetParent;
  
      return offsetParent || documentElement;
    }