Skip to content
Permalink
Browse files
Only attempt to use the IE technique for setting opacity if the filte…
…r property exists (otherwise fallback to the standards-compatible technique).
  • Loading branch information
jeresig committed Aug 26, 2010
1 parent dc060f0 commit 5673e4b
Showing 1 changed file with 1 addition and 1 deletion.
@@ -49,7 +49,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

0 comments on commit 5673e4b

Please sign in to comment.