From: Timmy Willison Date: Wed, 11 Sep 2013 22:58:38 +0000 (-0500) Subject: Fix failing support test in IE6/7 X-Git-Tag: 1.11.0-beta1~16 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=e7bdccacab37164def22ac4ba3eaaf497b616378;p=jquery.git Fix failing support test in IE6/7 --- diff --git a/src/support.js b/src/support.js index 3add264bf..dbaf92159 100644 --- a/src/support.js +++ b/src/support.js @@ -43,7 +43,7 @@ jQuery(function() { // Check if natively block-level elements act like inline-block // elements when setting their display to 'inline' and giving // them layout - div.style.cssText = "width:1px;padding:1px;display:inline;zoom:1"; + div.style.cssText = "border:0;margin:0;width:1px;padding:1px;display:inline;zoom:1"; if ( (support.inlineBlockNeedsLayout = ( div.offsetWidth === 3 )) ) { // Prevent IE 6 from affecting layout for positioned elements #11048