code: function offsetLeft (elem) {
      let left = 0
  
      do {
        if (!isNaN(elem.offsetLeft)) left += elem.offsetLeft
      } while (elem = elem.offsetParent )
  
      return left
    }
docs: Recursively calculate left offset of an element from the body