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

Re: magic corner gradient revisited

From: Brad Kemper <brad.kemper@gmail.com>
Date: Tue, 9 Aug 2011 08:12:35 -0700
Cc: Florian Rivoal <florianr@opera.com>, www-style@w3.org
Message-Id: <E6C4F435-9C43-4874-969A-1545F389735A@gmail.com>
To: "Tab Atkins Jr." <jackalmage@gmail.com>

On Aug 9, 2011, at 7:51 AM, Tab Atkins Jr. wrote:

> On Tue, Aug 9, 2011 at 6:04 AM, Florian Rivoal <florianr@opera.com> wrote:
>>> It may be omitted; if so, it defaults to "to bottom".
>> 
>> I am somewhat uncomfortable with having the direction when everything is
>> omitted be different from 0 deg, but the current wording makes it equivalent
>> to 180 deg.
> 
> That's been the behavior for forever.  I based it off the fact that
> the plurality of linear gradients on the web were vertical, and it
> seemed most natural to have the colors start at the top rather than
> the bottom.  I'd rather not change it unless there's a very good
> reason.

Given that 0deg = up, it does seem more intuitive that the default direction should be 'to top', which is still vertical. I agree that it seems more natural to start at the top, but only in the same way that it seems more natural to me to say 'from top' than 'to bottom' (start with an edge and move towards the other edge). But if we don't have 'from top' syntax, then it is no longer natural to have 'to bottom' be the default. And now is the best time to change it, since the syntax is changing too (less breakage if there are prefixed versions changing).
Received on Tuesday, 9 August 2011 15:13:05 GMT

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