ded / bonzo

library agnostic, extensible DOM utility
Other
1.32k stars 137 forks source link

Use opacity instead of filter if the browser is IE9 or higher #49

Open nemeseri opened 13 years ago

nemeseri commented 13 years ago

IE9 and IE10 are supporting the opacity css property. It would be better to use it instead of filters. You might use -ms-filter if the browser is IE8, because the original filter property might cause issues.

ded commented 13 years ago

cool. I'll add a workaround as done the same as Morpheus

mantoni commented 12 years ago

+1 This is also an issue if the UserAgent string was changed - I had to do this with Chrome to get through a nasty proxy. Not an issue with the technique used by Morpheus.

dcecile commented 12 years ago

Using the MS filter caused problems in my code with IE9; the problem was fixed by editing Bonzo to use opacity instead.

Switching between opaque and transparent caused my div to become permanently transparent. I can provide a minimal example if needed.