aboutsummaryrefslogtreecommitdiffstats
path: root/src/support.js
diff options
context:
space:
mode:
authorMike Sherov <mike.sherov@gmail.com>2011-12-26 15:22:29 -0500
committerDave Methvin <dave.methvin@gmail.com>2012-01-17 20:41:51 -0500
commit2982abbb13454bd4bdf0299f1183fb0d8c02f02d (patch)
treebab421b875d9c5ce76aa796b88fc230e77f5e5ba /src/support.js
parentc0da49ff37484764bd0f33fe40d1a5f83d0f39e8 (diff)
downloadjquery-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.js4
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;