(el, prop, val)
| 186 | } |
| 187 | } |
| 188 | function css(el, prop, val) { |
| 189 | var style = el && el.style; |
| 190 | if (style) { |
| 191 | if (val === void 0) { |
| 192 | if (document.defaultView && document.defaultView.getComputedStyle) { |
| 193 | val = document.defaultView.getComputedStyle(el, ''); |
| 194 | } else if (el.currentStyle) { |
| 195 | val = el.currentStyle; |
| 196 | } |
| 197 | return prop === void 0 ? val : val[prop]; |
| 198 | } else { |
| 199 | if (!(prop in style) && prop.indexOf('webkit') === -1) { |
| 200 | prop = '-webkit-' + prop; |
| 201 | } |
| 202 | style[prop] = val + (typeof val === 'string' ? '' : 'px'); |
| 203 | } |
| 204 | } |
| 205 | } |
| 206 | function matrix(el, selfOnly) { |
| 207 | var appliedTransforms = ''; |
| 208 | if (typeof el === 'string') { |
no outgoing calls
no test coverage detected