W3C home > Mailing lists > Public > www-style@w3.org > November 2010

Re: [css3-images] Repeating oblique gradients

From: Brad Kemper <brad.kemper@gmail.com>
Date: Tue, 30 Nov 2010 09:48:44 -0800
Cc: Leif Arne Storset <lstorset@opera.com>, Rik Cabanier <cabanier@adobe.com>, www-style list <www-style@w3.org>
Message-Id: <BF224F2C-F7AC-4C62-91EB-2F30EDD7EE76@gmail.com>
To: "Tab Atkins Jr." <jackalmage@gmail.com>

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 GMT

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