The ticket I opened on this (#3502) was closed as a duplicate, but it had a patch I wrote that addressed this issue.
It required two changes: 1. The attr function would need an additional parameter -- the css collection's parent. 2. Once the filter was removed, the parent.currentStyle.filter property was checked to see if there was a default opacity assigned. I gathered that my patch was considered overkill for the situation, but it did solve the problem for me. JK -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Brandon Aaron Sent: Thursday, May 14, 2009 7:56 AM To: [email protected] Subject: [jquery-dev] Re: #3981 IE 6 & 7 reports incorrect CSS opacity values in jQuery 1.3.1 Fixed in r6439 ( http://dev.jquery.com/changeset/6349 ). This actually brings up an interesting issue in regards to fixing clear type in IE when using filters. Most people just remove the filter if opacity is set to 1 or 0. However, you really have to double check to make sure it is actually set to 1 or 0 after removing it in-case the style sheet has a different opacity value. In which case it does, you'd have to do some trickery and potentially loose/overwrite the value in the style sheet. -- Brandon Aaron On Thu, May 14, 2009 at 5:20 AM, Jörn Zaefferer <[email protected]> wrote: > > I'd like to give this ticket (http://dev.jquery.com/ticket/3981) a > bump, after stumbling about the same problem while trying to animate > an element with fadeIn, which has an opacity value set in a > stylesheet. > > The attached patch fixes the problem in my case. It duplicates parts > of whats already there for parsing the filter value, but otherwise it > looks fine. > > Any reason not to commit it to get it included in 1.3.3? > > Jörn > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "jQuery Development" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/jquery-dev?hl=en -~----------~----~----~----~------~----~------~--~---
