W3C home > Mailing lists > Public > www-style@w3.org > May 2011

[css3-images] cross-fade()

From: L. David Baron <dbaron@dbaron.org>
Date: Wed, 4 May 2011 09:40:21 -0700
To: www-style@w3.org
Message-ID: <20110504164021.GA5817@pickering.dbaron.org>
I think the current definition of cross-fade() in
http://dev.w3.org/csswg/css3-images/#cross-fade-function is
incorrect.  It defines cross-fade() in terms of the porter-duff over
operator, which is not symmetric.  This means that cross-fade(A, B,
30%) is different from cross-fade(B, A, 70%).

I *think*, though I'm not sure, that the right way to define
cross-fade is in terms of the plus operator described in section 4.5
of the original Porter-Duff paper:
http://keithp.com/~keithp/porterduff/

-David

-- 
L. David Baron                                 http://dbaron.org/
Mozilla Corporation                       http://www.mozilla.com/
Received on Wednesday, 4 May 2011 16:40:46 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:20:40 GMT