Re: stroke=gradient for lines or horizontal paths

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 UTC