MCPcopy
hub / github.com/deepch/RTSPtoWebRTC / getStyleComputedProperty

Function getStyleComputedProperty

web/static/js/bootstrap.bundle.js:1598–1606  ·  view source on GitHub ↗

* Get CSS computed property of the given element * @method * @memberof Popper.Utils * @argument {Eement} element * @argument {String} property

(element, property)

Source from the content-addressed store, hash-verified

1596 * @argument {String} property
1597 */
1598 function getStyleComputedProperty(element, property) {
1599 if (element.nodeType !== 1) {
1600 return [];
1601 }
1602 // NOTE: 1 DOM access here
1603 var window = element.ownerDocument.defaultView;
1604 var css = window.getComputedStyle(element, null);
1605 return property ? css[property] : css;
1606 }
1607
1608 /**
1609 * Returns the parentNode or the host of the element

Callers 7

getScrollParentFunction · 0.85
getOffsetParentFunction · 0.85
getBoundingClientRectFunction · 0.85
isFixedFunction · 0.85
arrowFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected