Re: [css-images] color stops transition

On Aug 19, 2013, at 11:21 PM, Tab Atkins Jr. <jackalmage@gmail.com> wrote:

> On Sun, Aug 18, 2013 at 12:29 AM, Dirk Schulze <dschulze@adobe.com> wrote:
>> Hi,
>> 
>> There is a post processing step that "orders" color stops if a user specifies them out of order. This creates the actual list of color stops[1].
>> 
>> ""
>> The following steps must be applied in order to process the list of color stops
>> ""
>> 
>> The paragraph about interpolation says[2]:
>> 
>> ""
>> Interpolate each component and color-stop of the gradients independently.
>> ""
>> 
>> Is this animation done on the post processed color stops, or the specified color stops?
> 
> Sorry, this is unclear in the spec.  The intention is that you process
> the stops first, then interpolate the processed positions.  I think
> this then requires you to do step 2 of the fixup *again*, as I believe
> the stops can get misordered during the transition.

If you require to order color stops before you interpolate, then you implicitly require to have layout happen at this time as well. To order color stops, you need to know the gradient length.

Greetings,
Dirk

> 
> I think we should swap steps 2 and 3 of the fixup, define that step 1,
> (current) 3, and 4 are done at computed-value time, and then (current)
> step 2 is done at used-value time as a final fixup step.
> 
> ~TJ

Received on Tuesday, 3 September 2013 10:39:54 UTC