( elem )
| 5747 | var rcustomProp = /^--/; |
| 5748 | |
| 5749 | function getStyles( elem ) { |
| 5750 | |
| 5751 | // Support: IE <=11+ (trac-14150) |
| 5752 | // In IE popup's `window` is the opener window which makes `window.getComputedStyle( elem )` |
| 5753 | // break. Using `elem.ownerDocument.defaultView` avoids the issue. |
| 5754 | var view = elem.ownerDocument.defaultView; |
| 5755 | |
| 5756 | // `document.implementation.createHTMLDocument( "" )` has a `null` `defaultView` |
| 5757 | // property; check `defaultView` truthiness to fallback to window in such a case. |
| 5758 | if ( !view ) { |
| 5759 | view = window; |
| 5760 | } |
| 5761 | |
| 5762 | return view.getComputedStyle( elem ); |
| 5763 | } |
| 5764 | |
| 5765 | // A method for quickly swapping in/out CSS properties to get correct calculations. |
| 5766 | function swap( elem, options, callback ) { |
no outgoing calls
no test coverage detected