]> source.dussan.org Git - jquery.git/commitdiff
Fix failing support test in IE6/7
authorTimmy Willison <timmywillisn@gmail.com>
Wed, 11 Sep 2013 22:58:38 +0000 (17:58 -0500)
committerTimmy Willison <timmywillisn@gmail.com>
Wed, 11 Sep 2013 22:58:38 +0000 (17:58 -0500)
src/support.js

index 3add264bf424f98cee116143d7421f86b8c7bbed..dbaf9215977a864aa42f355c4886c7bf66368458 100644 (file)
@@ -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