W3C home > Mailing lists > Public > www-style@w3.org > August 2009

Re: Repeating gradients (Was: Re: Talk on radial gradients)

From: Robert O'Callahan <robert@ocallahan.org>
Date: Tue, 25 Aug 2009 09:51:11 -0700
Message-ID: <11e306600908250951w37f34dd4m818cc1f4ea59d7a0@mail.gmail.com>
To: "Tab Atkins Jr." <jackalmage@gmail.com>
Cc: Simon Fraser <smfr@me.com>, Brad Kemper <brad.kemper@gmail.com>, www-style list <www-style@w3.org>
On Tue, Aug 25, 2009 at 8:55 AM, Tab Atkins Jr. <jackalmage@gmail.com>wrote:

> Indeed.  As I currently have it, and as Webkit does it, none of the
> background-* properties leak into the gradient() rule.  It's a
> completely independent function that just does its job drawing an
> image with the information provided and then steps back, just like
> url().

The logic here is that repeating behaviour depends on the image type.

I'm inclined to keep it that way.  To do otherwise is to make it act
> unpredictably when further combinations of background-* properties are
> used.  For example, when you use background-size to make the image
> less than the size of the box, what happens?  Does it repeat?

No, it scales. Whether an image repeats or not is independent of the image
type. The only thing that varies by image type is how it repeats.

> What if
> you want a gradient that only runs through its stops once (which would
> require no-repeat), but is then tiled across the background (which
> would require repeat)?

You basically never want that.

"He was pierced for our transgressions, he was crushed for our iniquities;
the punishment that brought us peace was upon him, and by his wounds we are
healed. We all, like sheep, have gone astray, each of us has turned to his
own way; and the LORD has laid on him the iniquity of us all." [Isaiah
Received on Tuesday, 25 August 2009 16:51:51 UTC

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:07:38 UTC