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

Re: [css3-images] Order of color-stop fixup

From: Shane Stephens <shans@google.com>
Date: Fri, 12 Aug 2011 04:53:27 -0700
Message-ID: <CAGTfzwRBuw8DE+pv6Ay5Yk3X5U1WJT8V60XF_5Lkz6S-z6L7xg@mail.gmail.com>
To: Brian Manthos <brianman@microsoft.com>
Cc: "Tab Atkins Jr." <jackalmage@gmail.com>, www-style list <www-style@w3.org>
On Thu, Aug 11, 2011 at 10:28 PM, Brian Manthos <brianman@microsoft.com>wrote:

>  Correct, you have specified two constraints that are conflicting.  The
> current spec chooses to respect the even distribution over the distribution
> length, since satisfying both is not possible.
>

Well, yes. The point is that either approach breaks a set of constraints and
hence "this approach breaks some constraints" is not in and of itself a
strong argument against one of the two.

Cheers,
    -Shane


> ****
>
> ** **
>
> -Brian****
>
> ** **
>
> *From:* Shane Stephens [mailto:shans@google.com]
> *Sent:* Thursday, August 11, 2011 9:18 PM
> *To:* Brian Manthos
> *Cc:* Tab Atkins Jr.; www-style list
>
> *Subject:* Re: [css3-images] Order of color-stop fixup****
>
>  ** **
>
> ** **
>
> Example 1:****
>
> linear-gradient(red -100%, white, green, black, blue)****
>
> ** **
>
> Example 2:****
>
> linear-gradient(black, red -100%, white, green, black, blue)****
>
> ** **
>
> Example 1 ED 5.4 current:****
>
> linear-gradient(red -100%, white -50%, green 0%, black 50%, blue 100%)****
>
> ** **
>
> Example 2 ED 5.4 current:****
>
> linear-gradient(black 0%, red 0%, white 25%, green 50%, black 75%, blue
> 100%)****
>
> ** **
>
> Why has adding a black stop before my explicitly specified red stop caused
> all of my evenly spaced stops to shuffle up?  I asked for them to be spaced
> between -100% and 100%.****
>
> ** **
>
Received on Friday, 12 August 2011 11:53:53 GMT

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