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

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

From: Brian Manthos <brianman@microsoft.com>
Date: Thu, 9 Jun 2011 16:20:57 +0000
To: fantasai <fantasai.lists@inkedblade.net>, Sylvain Galineau <sylvaing@microsoft.com>
CC: "www-style@w3.org" <www-style@w3.org>
Message-ID: <FA122FEC823D524CB516E4E0374D9DCF1FB175CC@TK5EX14MBXC136.redmond.corp.microsoft.com>
> Behalf Of fantasai
> Let's say I create a gradient like this:
> 
>    background: linear-gradient(left, blue, green);
> 
> This will create a gradient with blue starting at the left edge of the
> box
> progressing to green on the right edge of the box.
> 
> Now suppose I create a gradient like this:
> 
>    background: linear-gradient(left, blue, green 10px);
> 
> This will create a gradient with blue starting at the left edge of the
> box
> and progressing to green at 10px from the start of the gradient, i.e.
> at
> the left edge of the box, and continuing as green until the right edge.

background: linear-gradient(left, transparent 90%, blue 90%, green);

With the current spec this will render a similar "colors on the right" rendering.  Is this one a problem for the "weird, the colors should be on the left" way of thinking about things too?


Again, the root issue is that angle and keyword specifications are not consistent with each other in the prose or in the effect.  One of them should be change so the spec is self consistent across first parameter formats.

If you want it to mean "coming from <keyword>" then the angles should behave the same way.
Received on Thursday, 9 June 2011 16:21:27 GMT

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