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

Re: Gradient syntax proposal

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Fri, 14 Aug 2009 18:35:13 -0500
Message-ID: <dd0fbad0908141635w6a930fen13faafa007013a30@mail.gmail.com>
To: Brad Kemper <brad.kemper@gmail.com>
Cc: fantasai <fantasai.lists@inkedblade.net>, "www-style@w3.org" <www-style@w3.org>
On Fri, Aug 14, 2009 at 6:24 PM, Brad Kemper<brad.kemper@gmail.com> wrote:
>>> If I wanted to start say, 30% from the top, and end at the bottom, I
>>> would
>>> write that as "linear-gradient(top, green 30%, blue 20%, navy)". Or if I
>>> wanted to be a few degrees off from straight down, I would do
>>> "linear-gradient(-87deg, green 30%, blue 20%, navy)". I think these are
>>> both
>>> much cleaner, and provide all that an author will really need.
>> All right, changed my mind.  That looks confusing as *hell*.  It looks
>> like you meant to write "blue 20%, green 30%, navy" but swapped them
>> for some reason.
> What? Why? Wasn't green her first color? Wasn't it supposed to start 30%
> from the top?

Depends.  As written, it seems like you intend the gradient to go
blue-green-black, but just wrote the colors out of order.  Did you
intend to write "blue 50%"?  Or did you really mean for blue to be 20%
between green and black (that is, 44% down from the top)?

>> I don't like it at all.
> Mine was simpler.

Heh, possibly.  Possibly not.  If a % means different things based on
whether it's used in a terminal color-stop or a middle color-stop,
then it's much more confusing.

Received on Friday, 14 August 2009 23:36:07 UTC

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:07:38 UTC