diff options
author | Mike Sherov <mike.sherov@gmail.com> | 2011-12-26 15:22:29 -0500 |
---|---|---|
committer | Dave Methvin <dave.methvin@gmail.com> | 2012-01-17 20:41:51 -0500 |
commit | 2982abbb13454bd4bdf0299f1183fb0d8c02f02d (patch) | |
tree | bab421b875d9c5ce76aa796b88fc230e77f5e5ba /src/support.js | |
parent | c0da49ff37484764bd0f33fe40d1a5f83d0f39e8 (diff) | |
download | jquery-2982abbb13454bd4bdf0299f1183fb0d8c02f02d.tar.gz jquery-2982abbb13454bd4bdf0299f1183fb0d8c02f02d.zip |
fixes #11048: make sure support tests don't modify the layout of the body
Diffstat (limited to 'src/support.js')
-rw-r--r-- | src/support.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/support.js b/src/support.js index f2fa161e0..e881b040e 100644 --- a/src/support.js +++ b/src/support.js @@ -283,6 +283,10 @@ jQuery.support = (function() { support.pixelMargin = ( window.getComputedStyle( div, null ) || { marginTop: 0 } ).marginTop !== "1%"; } + if ( typeof container.style.zoom !== "undefined" ) { + container.style.zoom = 1; + } + body.removeChild( container ); div = container = null; |