* Determines if an element is fixed-positioned. * OK to use, because it's only called from onLayoutMeasure * @param {!Element} el * @param {!Window} win * @return {boolean}
(el, win)
| 25 | * @return {boolean} |
| 26 | */ |
| 27 | function isPositionFixed(el, win) { |
| 28 | const {position} = computedStyle(win, el); |
| 29 | // We consider sticky positions as fixed, since they can be fixed. |
| 30 | return position == 'fixed' || position == 'sticky'; |
| 31 | } |
| 32 | |
| 33 | /** |
| 34 | * @param {!Element} element |
no test coverage detected