* Finds the first parent of an element that has a transformed property defined * @method * @memberof Popper.Utils * @argument {Element} element * @returns {Element} first transformed parent or documentElement
(element)
| 2087 | */ |
| 2088 | |
| 2089 | function getFixedPositionOffsetParent(element) { |
| 2090 | // This check is needed to avoid errors in case one of the elements isn't defined for any reason |
| 2091 | if (!element || !element.parentElement || isIE()) { |
| 2092 | return document.documentElement; |
| 2093 | } |
| 2094 | var el = element.parentElement; |
| 2095 | while (el && getStyleComputedProperty(el, 'transform') === 'none') { |
| 2096 | el = el.parentElement; |
| 2097 | } |
| 2098 | return el || document.documentElement; |
| 2099 | } |
| 2100 | |
| 2101 | /** |
| 2102 | * Computed the boundaries limits and return them |
no test coverage detected