From 2982abbb13454bd4bdf0299f1183fb0d8c02f02d Mon Sep 17 00:00:00 2001 From: Mike Sherov Date: Mon, 26 Dec 2011 15:22:29 -0500 Subject: fixes #11048: make sure support tests don't modify the layout of the body --- src/support.js | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src') 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; -- cgit v1.2.3