]> source.dussan.org Git - jquery.git/commitdiff
Fix #11443 fix. Safari 5.0.x, reliable margin? Riiight. Closes gh-792.
authorMike Sherov <mike.sherov@gmail.com>
Thu, 24 May 2012 12:46:38 +0000 (08:46 -0400)
committerDave Methvin <dave.methvin@gmail.com>
Fri, 25 May 2012 01:04:50 +0000 (21:04 -0400)
src/support.js

index c7c2b5434277c87709e14ea44ded7616f0dbf377..3a51ba74b303e6ffe5b98c0ffab4844583a763bb 100644 (file)
@@ -225,7 +225,7 @@ jQuery.support = (function() {
                        div.innerHTML = "";
                        marginDiv = document.createElement( "div" );
                        marginDiv.style.cssText = div.style.cssText = divReset;
-                       marginDiv.style.marginRight = "0";
+                       marginDiv.style.marginRight = marginDiv.style.width = "0";
                        div.style.width = "2px";
                        div.appendChild( marginDiv );
                        support.reliableMarginRight =