W3C home > Mailing lists > Public > www-style@w3.org > April 2014

Re: [css-images] gradient midpoints

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Thu, 17 Apr 2014 12:20:17 -0700
Message-ID: <CAAWBYDA0P5AYfc8KcrEnjPms7Sush7pbbOXwVzcp7Df41YBwSw@mail.gmail.com>
To: Rik Cabanier <cabanier@gmail.com>
Cc: www-style list <www-style@w3.org>
On Thu, Apr 17, 2014 at 11:23 AM, Rik Cabanier <cabanier@gmail.com> wrote:
>> > The spec also has this wording:
>> >
>> > If multiple stops in a row lack a color, they space themselves out
>> > equally
>> > in "color space", giving more control over the smoothness of the
>> > transition.
>> >
>> > Is this to add multiple midpoints?
>>
>> It has nothing to do with the conception of "midpoints" that you
>> proposed at the f2f.  The current state of the spec (since I haven't
>> yet edited in the f2f resolution) has the behavior of a color stop
>> being symmetrical between missing a position and missing a color -
>> either way, you just fill in the missing values by spacing them out
>> between the surrounding specified values.
>
> ah, I see
> so, if a gradient goes from 0 to 1 and there are 2 stops at 10% and 90%,
> stop 1 would get 33% and stop 2 66%.
> Would there be linear interpolation at that point?

Yes, it didn't do anything special.  It was just a shortcut syntax to
let you equally space colors without explicitly specifying them, same
as the omitted positions.

~TJ
Received on Thursday, 17 April 2014 19:21:04 UTC

This archive was generated by hypermail 2.4.0 : Monday, 23 January 2023 02:14:39 UTC