@@ -5,7 +5,7 @@ define( [
55 "./var/getStyles" ,
66 "./support" ,
77 "../selector" // Get jQuery.contains
8- ] , function ( jQuery , rnumnonpx , rmargin , getStyles ) {
8+ ] , function ( jQuery , rnumnonpx , rmargin , getStyles , support ) {
99
1010function curCSS ( elem , name , computed ) {
1111 var width , minWidth , maxWidth , ret ,
@@ -22,13 +22,12 @@ function curCSS( elem, name, computed ) {
2222 ret = jQuery . style ( elem , name ) ;
2323 }
2424
25- // Support: iOS < 6, Android 4.0-4.3 only
2625 // A tribute to the "awesome hack by Dean Edwards"
27- // iOS < 6 (at least) returns percentage for a larger set of values,
28- // but width seems to be reliably pixels
29- // this is against the CSSOM draft spec:
26+ // Android Browser returns percentage for some values,
27+ // but width seems to be reliably pixels.
28+ // This is against the CSSOM draft spec:
3029 // http://dev.w3.org/csswg/cssom/#resolved-values
31- if ( rnumnonpx . test ( ret ) && rmargin . test ( name ) ) {
30+ if ( ! support . pixelMarginRight ( ) && rnumnonpx . test ( ret ) && rmargin . test ( name ) ) {
3231
3332 // Remember the original values
3433 width = style . width ;
0 commit comments