function getShadowParent (node) {
  return node && (node.toString() === '[object ShadowRoot]' ? node : getShadowParent(node.parentNode))
}
Helper function to locate a shadowRoot parent if at all

@param {Element} node - Node