MCPcopy
hub / github.com/greensock/GSAP / _getComputedStyle

Function _getComputedStyle

esm/ScrollTrigger.js:164–166  ·  view source on GitHub ↗
(element)

Source from the content-addressed store, hash-verified

162 _Height = "Height",
163 _px = "px",
164 _getComputedStyle = function _getComputedStyle(element) {
165 return _win.getComputedStyle(element.nodeType === Node.DOCUMENT_NODE ? element.scrollingElement : element);
166},
167 _makePositionable = function _makePositionable(element) {
168 // if the element already has position: absolute or fixed, leave that, otherwise make it position: relative
169 var position = _getComputedStyle(element).position;

Callers 6

_makePositionableFunction · 0.70
_getBoundsFunction · 0.70
_parsePositionFunction · 0.70
_reparentFunction · 0.70
ScrollTrigger.jsFile · 0.70
_nestedScrollFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…