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

> 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 UTC