Re: Gradient syntax proposal

From: "Tab Atkins Jr." <jackalmage@gmail.com>
> On Thu, Aug 20, 2009 at 8:11 PM, David Perrell<davidp@hpaa.com> wrote:
>> Tab Atkins Jr. wrote:
>> | (Interestingly, the syntax would then look like just "<bg-position> ||
>> | <angle>".)
>>
>> Lookin' gooood!
>
> I've gone ahead and updated the draft to match this:
>
> http://www.xanthir.com/:4bhipd

Good proposal.

-------------------------------------

Only one question though. Gradients are images that does not have any
predefined size. Is it really usefull to allow <length> to be used (that 
mean
we could use units like "px" or "em") ?

If yes, what to do if the background where the gradient must take place is
50px * 50px and the start point of the background is, let's say, at (60px: 
0px).

Is that valid but 'outside' the visible zone of the image ? Is this invalid 
?

--------------------------------------

[...] For example, the rule linear-gradient(left / red, yellow 100px, blue 
50%) would [...]

> The amount of text ended up about the same, because I added several
> (hopefully) clarifying examples in that section.
>
> I've also updated all the examples on the page appropriately.  Ping me
> if there's an inconsistency somewhere.
>
> ~TJ
> 

Received on Saturday, 22 August 2009 12:14:41 UTC