This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
As CSS defines transparent to be 'transparent black' and we have agreed to transition instead to the transparent version of the other end of the transition - I believe Firefox does this - we need to capture this in the spec. I thought it was there but couldn't find it.
We should just define that color transitions happen in premultiplied space. Test case: data:text/html,<!doctype html> <body style="width:100px;color:green; transition:color 5s linear"> The quick brown fox jumped over the lazy dog <script> setTimeout(function(){document.body.style.color = 'rgba(7,250,9,0)'},0) setTimeout(function(){document.documentElement.textContent = getComputedStyle(document.body).color},2500) </script> Add a prefix to the 'transition' property as appropriate. Chrome 18 dev and Firefox trunk output "rgba(0, 128, 0, 0.5)" or something close to it, so they're using premultiplied space. IE10 Developer Preview and Opera Next 12.00 alpha output "rgba(3, 189, 4, 0.5)" or something close to it, so they're doing non-premultiplied space. The expected visual effect is always to do it in premultiplied space -- otherwise the transition can look quite weird. This shouldn't be a special case for "transparent". This is currently issue 6 in the spec. I suggest it be resolved in favor of the Gecko/WebKit behavior.
Agreed, although matching CSS gradients has been discussed in the past, and Mac WebKit (at least) can't do premultiplied gradients right now.
Can we mark this a duplicate of bug 14624?
*** This bug has been marked as a duplicate of bug 14624 ***