Opened 10 years ago

Closed 10 years ago

#10766 closed defect (invalid)

[patch][cla] dojo.animateProperty does not animate alpha channel in rgba colours

Reported by: seangarner Owned by: nic
Priority: high Milestone: tbd
Component: Core Version: 1.3.2
Keywords: fx Cc:
Blocked By: Blocking:

Description

When using animateProperty to animate between 2 colours it ignores the alpha channel if the node has a colour defined using rgba(Rn,Gn,Bx,Ax).

This means that if you try using animateProperty on a colour that has an alpha channel it will be lost during the transition and will assume A=255 leaving you with solid colours during and after the animation has ended.

The fix appears to be trivial and works with FF3.5, FF3.6, Chrome and Chromium nightly browsers (sorry, I have no access to IE).

Patch included for dojo 1.3.2 and trunk (as of now).

Attachments (2)

1.3.2.diff (164 bytes) - added by seangarner 10 years ago.
Patch for 1.3.2
trunk.diff (164 bytes) - added by seangarner 10 years ago.
Patch for trunk

Download all attachments as: .zip

Change History (4)

Changed 10 years ago by seangarner

Attachment: 1.3.2.diff added

Patch for 1.3.2

Changed 10 years ago by seangarner

Attachment: trunk.diff added

Patch for trunk

comment:1 Changed 10 years ago by nic

Owner: changed from anonymous to nic
Status: newassigned

comment:2 Changed 10 years ago by nic

Resolution: invalid
Status: assignedclosed

The suggested fix breaks the animation on IE; now we are working on a dojox module to handle css3 properties on IE too.

Note: See TracTickets for help on using tickets.