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

Repeating gradient syntax question

From: Fraser Pearce <me@fraserpearce.com>
Date: Mon, 24 Jan 2011 21:15:14 +0000
Message-ID: <AANLkTi=HjiBNTdKD-b479VBLh6XuF-HsH1iCcXUQYqeR@mail.gmail.com>
To: www-style@w3.org

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.




Fraser Pearce

W: http://www.fraserpearce.com
E: me@fraserpearce.com
Received on Monday, 7 February 2011 13:20:45 UTC

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