(el, attr)
| 78 | } |
| 79 | |
| 80 | export function computedStyle (el, attr) { |
| 81 | var lineHeight; |
| 82 | if (el.currentStyle) { |
| 83 | lineHeight = el.currentStyle[attr] |
| 84 | } else if (window.getComputedStyle) { |
| 85 | lineHeight = window.getComputedStyle(el , null)[attr]; |
| 86 | } |
| 87 | return lineHeight; |
| 88 | } |
| 89 | |
| 90 | export function getLineHeight (origin) { |
| 91 | let el = origin.cloneNode(true); |
no outgoing calls
no test coverage detected
searching dependent graphs…