(current: Element)
| 267 | } |
| 268 | |
| 269 | function getOverflowParent(current: Element): Element | null { |
| 270 | var position = getEffectiveStyle(current, 'position'); |
| 271 | if (position === 'fixed') { |
| 272 | treatAsFixedPosition = true; |
| 273 | return current === htmlElem ? null : htmlElem; |
| 274 | } |
| 275 | |
| 276 | var parent = getParentElement(current); |
| 277 | while (parent && !canBeOverflowed(parent, position)) { |
| 278 | parent = getParentElement(parent); |
| 279 | } |
| 280 | return parent; |
| 281 | } |
| 282 | |
| 283 | function getOverflowStyles(current: Element): OverflowStyles { |
| 284 | var overflowElem = current; |
no test coverage detected