Re: [css3-images] Repeating oblique gradients

On Nov 30, 2010, at 9:25 AM, Tab Atkins Jr. wrote:

> For what it's worth, I'm trying to keep discrete values out of the
> gradient function, because they can't be interpolated well.  You can't
> do the specialized gradient interpolation between a normal and
> repeating gradient, for example.  As such, if we decide we want
> repeating gradients, I'd prefer Mozilla's current treatment, which is
> to define a pair of repeating-*-gradient() functions.  That way we can
> stick with "you can interpolate if they're the same function" (and
> color-stops match).

I'm not sure why "you can interpolate if they're the same function" is any better or worse than "you can interpolate if they have the same keyword there". But, whatever.

> So far, though, I don't have much evidence that this is actually
> needed.  Any evidence to the contrary showing that repeating gradients
> are used in practice would be appreciated - I've already got the
> appropriate section of the spec written, it's just commented out.

A sort of corduroy effect of thin light to dark bands could be nice. You can do it now with background images, as long as you stick to horizontal or vertical. But again: it is a background effect, and just needs to be handled by background properties.

Received on Tuesday, 30 November 2010 17:49:20 UTC