Re: Gradient syntax proposal

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.

~TJ

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