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

Re: [gradients] basics

From: Brad Kemper <brad.kemper@gmail.com>
Date: Wed, 9 Dec 2009 09:49:05 -0800
Message-Id: <C00E86A2-A260-4A0D-9FAD-AACF0060632B@gmail.com>
Cc: fantasai <fantasai.lists@inkedblade.net>, www-style <www-style@w3.org>
To: "Tab Atkins Jr." <jackalmage@gmail.com>


On Dec 8, 2009, at 1:28 PM, "Tab Atkins Jr." <jackalmage@gmail.com> wrote:

> [Not quoting because I don't have particular points to respond to.]
> 
> All right, Brad, you're right.  And wrong.  ^_^  Your reasoning is
> wrong - you're either thinking about something incorrectly,

Unlikely.   ;)

> [..]
> But that's no good; that means that even the default 'auto' value of
> background-size is incoherent when your background is a gradient.  We
> need to fix this.  This is where your idea comes in; saying that the
> gradient *is* finite in size and has edges equal to the 'box' used
> when generating them is the most natural way to deal with this.  This
> is intuitive and makes gradients work nicely with all the background
> properties.

Good. It was so intuitive to me that I never considered that it would be any other way (pretty much any image is going to need some sort of logical box to draw it into). But we are at least in agreement now.

> Now we come to background-repeat.  You're correct that this is the
> right place to make a gradient extend out of that box, because this
> property actually transforms finite-size images *into* infinite-size
> ones.  An image with background-repeat:repeat goes on forever in both
> dimensions, and no longer has edges, just like gradients.  So adding
> another value to this property, 'extend', which removes the visual
> clipping from naturally-infinite images is good and proper.  Just like
> a repeated background, the 'size' of the image is still the same as it
> would be without the repeating.

Exactly.

> So, this all sound sane?  I suspect it does, since I'm just explaining
> back to you what you already suggested.  

Yes. Much, much more sane to me.

> If so, then I'll change
> Images to explain this, and B&B'll need the new value added to
> background-repeat.  No other changes should be necessary.

I'm not sure if B&B needs to be changed (or held up), or if this can just be a gradients-dependant addendum that lives in the gradients spec.



Received on Wednesday, 9 December 2009 17:49:49 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 22 May 2012 03:47:12 GMT