W3C home > Mailing lists > Public > www-style@w3.org > August 2009

Re: Gradient syntax proposal

From: fantasai <fantasai.lists@inkedblade.net>
Date: Fri, 14 Aug 2009 15:00:01 -0700
Message-ID: <4A85DE61.3060402@inkedblade.net>
To: www-style@w3.org
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);

Received on Friday, 14 August 2009 22:01:02 UTC

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:07:38 UTC