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