Re: Gradient syntax proposal

On Fri, Aug 14, 2009 at 5:00 PM, fantasai<fantasai.lists@inkedblade.net> wrote:
> Tab Atkins Jr. wrote:
>>
>> In other words, I want a gradient that goes left-to-right, but leaving
>> 100px free on each edge.  I'm not sure how wide the box would be.  I
>> can't do this in your proposal - something like "linear-gradient(left
>> / white 100px, silver 50%, white 100px)" would instead either do
>> nothing, or make an image with 100px of white, then 50px of
>> white->silver and 50px of silver->white, with white filling the rest.
>>
>> I can do this with the <bg-position> construction, as
>> "linear-gradient(100px top to calc(100% - 100px) top / white, silver,
>> white)".
>
> Alternatively, as
>
>  linear-gradient(left 100px center to right 100px center / white, silver,
> white);

Ah, that's allowed as the <bg-position> syntax now?  Awesome.  That's
what I tried to write at first, but scrapped it to use calc() instead.

~TJ

Received on Friday, 14 August 2009 22:04:51 UTC