code: function getOffsetParents (el) {
    const parents = []
  
    if (!canUseDOM) {
      return parents
    }
  
    const node = findDOMNode(el)
  
    if (node) {
      let parent = node
  
      // eslint-disable-next-line no-cond-assign
      while ((parent = parent.parentNode) && parent && parent.nodeType === 1 && parent.tagName !== 'BODY') {
        const style = getComputedStyle(parent)
        const transform = style.getPropertyValue("-webkit-transform") ||
                          style.getPropertyValue("-moz-transform") ||
                          style.getPropertyValue("-ms-transform") ||
                          style.getPropertyValue("-o-transform") ||
                          style.getPropertyValue("transform") || 'none'
        // initial value of transform can be 'none' or a matrix equivalent
        const transformDefault = transform === 'none' || transform === 'matrix(1, 0, 0, 1, 0, 0)' ? true : false
  
        if (style.position !== 'static' || !transformDefault) {
          parents.push(parent)
        }
      }
  
      parents.push(ownerDocument(node).body)
    }
  
    return parents
  }
docs: ---
  category: utilities/DOM
  ---
  
  Retrieves the offset parents of a specified element.
  Includes parents of nodeType 1 (Element nodes such
  as <p> or <div>) that have either been transformed
  or that do not have static position.
  
  @param {ReactComponent|DomNode} el - component or DOM node
  @returns {Array} offset parents