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 5673e4bc3aa5991dfa51de5cb6d7027f2545ad03
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/css.js
@@ -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.
You can’t perform that action at this time.