Re: CSS3 transition strangeness when using background-color:transparent;

On 1/29/10 9:21 AM, Tab Atkins Jr. wrote:
> Of course, if an author changes to rgba(0,0,0,0) specifically, it
> should indeed transition on all components, and darken as it fades.

Why?  Why would you ever want that?

> I'm not sure how annoying special-casing this would be, though.
> Implementors?  Is 'transparent' turned into rgba(0,0,0,0) at too early
> of a stage to make this convenient?

In Gecko, this happens at the point when specified values are converted 
to computed values.  Computed values are what's used as input to 
transitions.

> Is is possible to special-case this?

Wouldn't it be better to just do the premultiplied thing?  Any time 
opacity is involved it seems to give more desirable results.

-Boris

Received on Friday, 29 January 2010 14:29:37 UTC