Re: [css4-images] Color stop syntax

On Mon, Oct 15, 2012 at 6:06 PM, fantasai <fantasai.lists@inkedblade.net> wrote:
> On 09/23/2012 07:20 AM, Lea Verou wrote:
>> It’s only a pair now, in the future it might be extended to allow for more
>> things.
>> For example, Rik Cabanier recently suggested in a discussion we had that
>> it might
>> be useful to allow an optional midpoint, like Adobe products traditionally
>> supported.
>> Of course, in that case, a specific relative order would be necessary,
>> since they
>> would both be of the same type.
>
> I want to suggest handling that as a color stop without a specified color,
> and having that mean 'average the two colors before/after me'. That *is*
> equivalent to having a "midpoint", isn't it?

That's interesting!  It's a logical extension of the current "omitted
position" treatment, where the positions get distributed evenly
between the two surrounding explicitly-positioned things.  I like it.

Only problem is that you can't omit the color from the first and last
stops, like you can when omitting position.  Not a huge deal, though.

~TJ

Received on Tuesday, 16 October 2012 17:27:36 UTC