MCPcopy
hub / github.com/nwutils/nw-sample-apps / computedStyle

Function computedStyle

mini-code-edit/cm/lib/codemirror.js:2931–2934  ·  view source on GitHub ↗
(elt)

Source from the content-addressed store, hash-verified

2929 }
2930
2931 function computedStyle(elt) {
2932 if (elt.currentStyle) return elt.currentStyle;
2933 return window.getComputedStyle(elt, null);
2934 }
2935
2936 // Find the position of an element by following the offsetParent chain.
2937 // If screen==true, it returns screen (rather than page) coordinates.

Callers 1

eltOffsetFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected