W3C home > Mailing lists > Public > www-style@w3.org > January 2010

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

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Fri, 29 Jan 2010 08:21:22 -0600
Message-ID: <dd0fbad1001290621u2ea756c8x14b9df8bfcde775c@mail.gmail.com>
To: Fran├žois REMY <fremycompany_pub@yahoo.fr>
Cc: w3-style@boblet.net, www-style <www-style@w3.org>
On Fri, Jan 29, 2010 at 4:38 AM, Fran├žois REMY
<fremycompany_pub@yahoo.fr> wrote:
> The problem of "transparent" is that it's computed as rbba(0,0,0,0), which
> is a fully transparent black. So the transition as it is defined now want
> the
> UA to perform a fade to black.
> Opera sometimes going to red seems wrong.
> Maybe we should add a small comment about that :
> "The transition of a color from and to 'transparent' should be rendered by
> the transition of the Alpha composant of the property only. The RGB values
> are kept the same as those of the non-'transparent' color of the transition.
> "

I agree that that would probably be a useful special-case, because the
color of transparency is always a confusing thing.  >_<

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.

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?  Is is possible to special-case

Received on Friday, 29 January 2010 14:22:17 UTC

This archive was generated by hypermail 2.4.0 : Monday, 23 January 2023 02:13:42 UTC