W3C home > Mailing lists > Public > www-svg@w3.org > July 2011

Re: stroke=gradient for lines or horizontal paths

From: Jasper van de Gronde <th.v.d.gronde@hccnet.nl>
Date: Sat, 23 Jul 2011 14:08:10 +0200
Message-ID: <4E2AB9AA.1030705@hccnet.nl>
To: www-svg@w3.org
On 2011-07-23 3:00, Tab Atkins Jr. wrote:
> ...
> spreadmethod=reflect or repeat are more difficult, though, because
> there is no first or last <stop>, conceptually.  Right now, CSS Images
> punts on the issue and requires repeating gradients to clamp their
> width to a minimum of 1px.  I'm open to better solutions, though
> (weighted average?), and would like to ensure that CSS gradients align
> with SVG gradients here.
If you consider really, really small but non-zero width/height you see
that with spreadmethod=reflect/repeat each pixel should be given the
"average" color of the gradient. Thanks for echoing earlier comments
about zero width/height gradients being well-defined btw.
Received on Saturday, 23 July 2011 12:08:50 GMT

This archive was generated by hypermail 2.3.1 : Friday, 8 March 2013 15:54:48 GMT