<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>15843</bug_id>
          
          <creation_ts>2012-02-02 02:03:50 +0000</creation_ts>
          <short_desc>Handling color transition to/from transparent</short_desc>
          <delta_ts>2012-02-17 21:57:31 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>CSS</product>
          <component>Transitions</component>
          <version>unspecified</version>
          <rep_platform>PC</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>14624</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Sylvain Galineau">sylvaing</reporter>
          <assigned_to name="Dean Jackson">dino</assigned_to>
          <cc>ayg</cc>
    
    <cc>cmarrin</cc>
    
    <cc>dbaron</cc>
    
    <cc>eoconnor</cc>
    
    <cc>smfr</cc>
          
          <qa_contact name="This bug has no owner yet - up for the taking">dave.null</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>63573</commentid>
    <comment_count>0</comment_count>
    <who name="Sylvain Galineau">sylvaing</who>
    <bug_when>2012-02-02 02:03:50 +0000</bug_when>
    <thetext>As CSS defines transparent to be &apos;transparent black&apos; 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&apos;t find it.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>64236</commentid>
    <comment_count>1</comment_count>
    <who name="Aryeh Gregor">ayg</who>
    <bug_when>2012-02-17 16:09:16 +0000</bug_when>
    <thetext>We should just define that color transitions happen in premultiplied space.  Test case:

data:text/html,&lt;!doctype html&gt;
&lt;body style=&quot;width:100px;color:green;
transition:color 5s linear&quot;&gt;
The quick brown fox jumped over the lazy dog
&lt;script&gt;
setTimeout(function(){document.body.style.color = &apos;rgba(7,250,9,0)&apos;},0)
setTimeout(function(){document.documentElement.textContent =
getComputedStyle(document.body).color},2500)
&lt;/script&gt;

Add a prefix to the &apos;transition&apos; property as appropriate.  Chrome 18 dev and Firefox trunk output &quot;rgba(0, 128, 0, 0.5)&quot; or something close to it, so they&apos;re using premultiplied space.  IE10 Developer Preview and Opera Next 12.00 alpha output &quot;rgba(3, 189, 4, 0.5)&quot; or something close to it, so they&apos;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&apos;t be a special case for &quot;transparent&quot;.

This is currently issue 6 in the spec.  I suggest it be resolved in favor of the Gecko/WebKit behavior.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>64238</commentid>
    <comment_count>2</comment_count>
    <who name="Simon Fraser">smfr</who>
    <bug_when>2012-02-17 16:23:48 +0000</bug_when>
    <thetext>Agreed, although matching CSS gradients has been discussed in the past, and Mac WebKit (at least) can&apos;t do premultiplied gradients right now.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>64255</commentid>
    <comment_count>3</comment_count>
    <who name="L. David Baron (Mozilla)">dbaron</who>
    <bug_when>2012-02-17 19:15:16 +0000</bug_when>
    <thetext>Can we mark this a duplicate of bug 14624?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>64264</commentid>
    <comment_count>4</comment_count>
    <who name="Sylvain Galineau">sylvaing</who>
    <bug_when>2012-02-17 21:57:31 +0000</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of bug 14624 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>