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

Re: Repeating gradient syntax question

From: Antony Kennedy <antony@silversquid.com>
Date: Mon, 7 Feb 2011 13:38:12 +0000
Cc: www-style@w3.org
Message-Id: <FEEAE8E6-60C3-4270-BBF9-38C555925D82@silversquid.com>
To: Fraser Pearce <me@fraserpearce.com>
This certainly feels a lot friendlier and less verbose to me. 

On 24 Jan 2011, at 21:15, Fraser Pearce wrote:

> Hi,
> 
> In reading the syntax I can't help but feel the way the repeated gradients work is still a bit long winded and seeminly duplicitive of the non repeat. I can think of two other, potentially better, ways of writing it in CSS that would be simpler and clearer.
>  
> My preferred method would simply to have a repeat keyword in the syntax, so the following:
> 
> -webkit-repeating-linear-gradient(left, red, green, blue)
> 
>  
> Would be written:
> 
> -webkit-linear-gradient(left, red, green, blue, repeat)
> 
>  
> The other option would be to observe the background-repeat value instead, seeing as ultimately these gradients are generated background images… but in this option I can't help but think I'm missing taking into account some kind of effect you wouldn't be able to do this way.
> 
>  
> Thoughts?
> 
> 
> F
> 
> -- 
> 
> =-=-=-=-=-=-=-=-=-=-=-=
> Fraser Pearce
> 
> W: http://www.fraserpearce.com
> E: me@fraserpearce..com
> 
Received on Monday, 7 February 2011 18:40:56 GMT

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