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

Re: [css3-images] Repeating oblique gradients

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Wed, 1 Dec 2010 15:53:03 -0800
Message-ID: <AANLkTinVFUpdG4BhFWWe40nMCXgYT8KZGA3w20nSytkx@mail.gmail.com>
To: Brad Kemper <brad.kemper@gmail.com>
Cc: Leif Arne Storset <lstorset@opera.com>, Rik Cabanier <cabanier@adobe.com>, www-style list <www-style@w3.org>
On Wed, Dec 1, 2010 at 3:47 PM, Brad Kemper <brad.kemper@gmail.com> wrote:
> On Dec 1, 2010, at 1:52 PM, "Tab Atkins Jr." <jackalmage@gmail.com> wrote:
>>> My position is that even though most images are rectangles that are stamped out parallel to the page edges, generated gradients do not have to be stamped out in the same way. When background properties see that the image is a gradient, they can supress the angle direction from expressing within the image, and instead rotate the entire background layer in such a way that the final result is that the rendered direction of the gradient within the background is the same as it would be in other properties. Supposing that the image is repeating in the gradient direction, then 'background-size' would determine whether the entire background painting area is filled with gradient, or you just see an angled strip of gradient.
>>>
>>> With this strategy, we eliminate the ugly versions of horizontal and vertical  rectangles tiles, avoid the need to expand the syntax of gradients, and allow authors to use what they already know for creating repeating patterns.
>>
>> And eliminate the ability to create gradient tiles,
>
> Why would it eliminate the ability to create gradient tiles? I don't see that at all.

If background-repeat:repeat makes gradients repeat their color-stops,
then it can't simultaneously tile the gradient.  It has to do one of
the other.

(Though, below, I see that you're suggesting it do one thing for
linear gradients, and a different thing for radial gradients.)


>> which actually is
>> kinda useful with radial gradients.
>
> I don't think that something we do for linear gradient tiles has to adversely affect radial gradients. Linear gradients have these two directions that would map nicely to the x and y of background-repeat: the gradient direction, and the perpendicular direction of the width of the gradient. I am not suggesting to do something like that to radials, as their main direction is outward, and you can't break radial repetitions into tiles, rotated or not. Is that what your beef with repeats vs. tiles is? I never intended to suggest that background-repeat do anything special for radial gradients. Check the subject line of this thread.

Having background-repeat do something different for linear and radial
gradients is kinda horrifying.  Even worse is having the color-stop
repetition for the two types of gradients be through different
methods.  This combines both of these problems.  T_T

~TJ
Received on Wednesday, 1 December 2010 23:53:58 GMT

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