W3C home > Mailing lists > Public > www-style@w3.org > October 2012

Re: [css4-images] Color stop syntax

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Tue, 16 Oct 2012 10:26:48 -0700
Message-ID: <CAAWBYDDbow3cgcoL3bnk2GSe_q=f46tMgezdvzk5Y8znKbPKQg@mail.gmail.com>
To: fantasai <fantasai.lists@inkedblade.net>
Cc: www-style@w3.org
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.

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

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:39:04 UTC