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

Re: Gradient syntax proposal

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Sat, 15 Aug 2009 14:03:15 -0500
Message-ID: <dd0fbad0908151203v2ebfa6dci1d42c6f630e8bfbe@mail.gmail.com>
To: Brad Kemper <brad.kemper@gmail.com>
Cc: www-style list <www-style@w3.org>
On Sat, Aug 15, 2009 at 2:00 PM, Brad Kemper<brad.kemper@gmail.com> wrote:
> On Aug 15, 2009, at 10:09 AM, Tab Atkins Jr. wrote:
>> So, hey, question unrelated to the debate.
>> Currently, I say that if the starting-point and ending-point are the
>> same, then the rule is invalid.  SVG says that in this situation the
>> 'gradient' is just the solid color specified by the furthest
>> color-stop.
>> I'd be fine with adopting this rule to cleave closer to SVG.  Anyone
>> have any objections?
> If I saw the following:
> linear-gradient(top / green 50%, blue 50%)
> I would assume the top half of the box was green and the bottom half blue,
> with a sharp division between, since the colors continue on both sides. As
> though the gradation took place within 0 pixels. Is that the sort of
> situation you mean?

Nah, what you're expressing is already exactly how things work.
Color-stops are allowed to hit the same points.

I'm talking about a situation like:

linear-gradient(top to top / green, blue)

If something analogous was expressed in SVG, it would just be a big
blue image, since blue was the furthest color stop.  Right now in my
proposal it's invalid.

Received on Saturday, 15 August 2009 19:04:09 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:38:28 UTC