Bug Tracker

Opened 13 years ago

Closed 13 years ago

#5344 closed bug (fixed)

Opera 9.2 and belowe don't handle css proprety «opacity»

Reported by: homm Owned by:
Priority: major Milestone: 1.4
Component: core Version: 1.3.2
Keywords: Cc:
Blocked by: Blocking:


For this browser jQuery.support.opacity evaluate to false. Problem in line 3159:

opacity: a.style.opacity === "0.5",

in This browser a.style.opacity equal "0.50"

Quick fix is replace line:

opacity: a.style.opacity.substr(0,3) === "0.5",

Change History (4)

comment:1 Changed 13 years ago by homm

Second solution of problem: opacity: a.style.opacity == .5

comment:2 Changed 13 years ago by homm

I'm sorry, second solution don't work in IE.

comment:3 Changed 13 years ago by homm

Another idea to fix this is check value 0.55 instead 0.5 (or another number with two digits)

<a href="/a" style="color:red;float:left;opacity:.55;">a</a>

opacity: a.style.opacity === "0.55",

As i can see, works in all browsers.

comment:4 Changed 13 years ago by john

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.