| 213 | |
| 214 | module.exports = exports = ace; |
| 215 | var 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 | |
| 232 | function applyStyles(elm, styles) { |
| 233 | for (var style in styles) { |