* 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)
| 3561 | |
| 3562 | |
| 3563 | function getFixedPositionOffsetParent(element) { |
| 3564 | // This check is needed to avoid errors in case one of the elements isn't defined for any reason |
| 3565 | if (!element || !element.parentElement || isIE()) { |
| 3566 | return document.documentElement; |
| 3567 | } |
| 3568 | |
| 3569 | var el = element.parentElement; |
| 3570 | |
| 3571 | while (el && getStyleComputedProperty(el, 'transform') === 'none') { |
| 3572 | el = el.parentElement; |
| 3573 | } |
| 3574 | |
| 3575 | return el || document.documentElement; |
| 3576 | } |
| 3577 | /** |
| 3578 | * Computed the boundaries limits and return them |
| 3579 | * @method |
no test coverage detected
searching dependent graphs…