X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=src%2Fcss.js;h=ae6853e9c0ce0748920d55f0282a09b6de88af7b;hb=bca576550249e9b79b1097669dff6d4ddd0d65cf;hp=ad0da6469919b513d891712b95aba1a8c65ba41c;hpb=8effe3a7dee91c833cc1774646da9d743600c64c;p=jquery.git diff --git a/src/css.js b/src/css.js index ad0da64..ae6853e 100644 --- a/src/css.js +++ b/src/css.js @@ -1,3 +1,5 @@ +(function( jQuery ) { + // exclude the following css properties to add px var rexclude = /z-?index|font-?weight|opacity|zoom|line-?height/i, ralpha = /alpha\([^)]*\)/, @@ -49,7 +51,7 @@ jQuery.extend({ var style = elem.style || elem, set = value !== undefined; // IE uses filters for opacity - if ( !jQuery.support.opacity && name === "opacity" ) { + if ( !jQuery.support.opacity && name === "opacity" && style.filter ) { if ( set ) { // IE has trouble with opacity if it does not have layout // Force it by setting the zoom level @@ -232,3 +234,5 @@ if ( jQuery.expr && jQuery.expr.filters ) { return !jQuery.expr.filters.hidden( elem ); }; } + +})( jQuery );