Liferay.Loader.define('site-navigation-item-selector-web$dom-helpers@5.2.0/esm/offsetParent', ['module', 'exports', 'require'], function (module, exports, require) {
  var define = undefined;
  var global = window;
  {
    import css from './css';
    import ownerDocument from './ownerDocument';

    var isHTMLElement = function isHTMLElement(e) {
      return !!e && 'offsetParent' in e;
    };

    export default function offsetParent(node) {
      var doc = ownerDocument(node);
      var parent = node && node.offsetParent;

      while (isHTMLElement(parent) && parent.nodeName !== 'HTML' && css(parent, 'position') === 'static') {
        parent = parent.offsetParent;
      }

      return parent || doc.documentElement;
    }
  }
});
//# sourceMappingURL=offsetParent.js.map