MCPcopy Index your code
hub / github.com/docker/getting-started / getStyleComputedProperty

Function getStyleComputedProperty

app/src/static/js/react-bootstrap.js:3077–3086  ·  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

3075
3076
3077function getStyleComputedProperty(element, property) {
3078 if (element.nodeType !== 1) {
3079 return [];
3080 } // NOTE: 1 DOM access here
3081
3082
3083 var window = element.ownerDocument.defaultView;
3084 var css = window.getComputedStyle(element, null);
3085 return property ? css[property] : css;
3086}
3087/**
3088 * Returns the parentNode or the host of the element
3089 * @method

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

Used in the wild real call sites across dependent graphs

searching dependent graphs…