diff options
-rw-r--r-- | src/css.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/css.js b/src/css.js index 16c093bd7..caad0076a 100644 --- a/src/css.js +++ b/src/css.js @@ -53,7 +53,7 @@ function vendorPropName( style, name ) { // NOTE: we've included the "window" in window.getComputedStyle // because jsdom on node.js will break without it. function getStyles( elem ) { - return window.getComputedStyle( elem, null ); + return elem.ownerDocument.defaultView.getComputedStyle( elem, null ); } function showHide( elements, show ) { |