Bug Tracker

Modify

Ticket #5344 (closed bug: fixed)

Opened 4 years ago

Last modified 4 years ago

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:
Blocking: Blocked by:

Description

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

comment:1 Changed 4 years ago by homm

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

comment:2 Changed 4 years ago by homm

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

comment:3 Changed 4 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 4 years ago by john

  • Status changed from new to closed
  • Resolution set to fixed

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.