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

RE: [css3-images] linear-gradient keywords and angles are opposite

From: Sylvain Galineau <sylvaing@microsoft.com>
Date: Thu, 9 Jun 2011 05:52:24 +0000
To: fantasai <fantasai.lists@inkedblade.net>, "www-style@w3.org" <www-style@w3.org>
Message-ID: <3C4041FF83E1E04A986B6DC50F0178290320B0@TK5EX14MBXC297.redmond.corp.microsoft.com>
Sorry, not sure I follow. Can you elaborate ? Actual use-cases backing up the model is what we are definitely after since that is the only way to demonstrate it to be better than alternatives. Thanks!

From: www-style-request@w3.org [www-style-request@w3.org] on behalf of fantasai [fantasai.lists@inkedblade.net]
Sent: Wednesday, June 08, 2011 8:40 PM
To: www-style@w3.org
Subject: Re: [css3-images] linear-gradient keywords and angles are opposite

On 06/09/2011 09:25 AM, Sylvain Galineau wrote:
> Why shouldn't top mean 'towards the top' and right 'towards the right' so
> that transitioning from top to right is equivalent to going from 0deg to 90deg
> on a bearing compass ? That seems perfectly coherent to me.

Because if my gradient has a fixed length (which is reasonably common for creating
edge effects via background-image), the "towards the top" interpretation would
place it at the bottom of the box.

I think *that* is counter-intuitive.

Received on Thursday, 9 June 2011 05:53:04 UTC

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