MCPcopy
hub / github.com/retspen/webvirtcloud / getCSSProperty

Function getCSSProperty

static/js/ext-textarea.js:215–230  ·  view source on GitHub ↗
(element, container, property)

Source from the content-addressed store, hash-verified

213
214module.exports = exports = ace;
215var getCSSProperty = function(element, container, property) {
216 var ret = element.style[property];
217
218 if (!ret) {
219 if (window.getComputedStyle) {
220 ret = window.getComputedStyle(element, '').getPropertyValue(property);
221 } else {
222 ret = element.currentStyle[property];
223 }
224 }
225
226 if (!ret || ret == 'auto' || ret == 'intrinsic') {
227 ret = container.style[property];
228 }
229 return ret;
230};
231
232function applyStyles(elm, styles) {
233 for (var style in styles) {

Callers 1

resizeEventFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected