Re: [css3-images] Proposed Gradients changes

On Mon, Nov 29, 2010 at 5:00 PM, Brad Kemper <brad.kemper@gmail.com> wrote:
> On Nov 29, 2010, at 4:48 PM, "Tab Atkins Jr." <jackalmage@gmail.com> wrote:
>> On Mon, Nov 29, 2010 at 4:10 PM, Brad Kemper <brad.kemper@gmail.com> wrote:
>>> If Filters are the primary benefit of duplicating background capabilities inside gradient images, then please enlighten me about how that works. Is there a Filters draft that explains how images are used in filters? I thought CSS Filters were going to use SVG functionality. Doesn't SVG have it's own way of generating gradients that is as complex as anyone could ever want?
>>
>> There is not yet a draft for such, though I believe that one will be
>> forthcoming relatively soon.
>>
>> From discussions, I believe that CSS Filters will expose the
>> functionality of SVG filters in a functional manner, so that you can
>> provide source images and pass them through filters (these source
>> images may be actual images or discrete layers of elements, like all
>> the backgrounds or all the text or whatever).
>
> So it may be fine, or even preferable to use more powerful SVG gradients for filters instead of CSS gradients (which should be more optimized for easy learning and typing and reading by authors).
>
> I'd rather see us start out with the simplest version of CSS gradients and only add extra arguments to the function if they are really needed. The existing way of getting pictures into CSS, url(), only has one argument after all. This should also help us to more quickly get matching implementations, and widespread author understanding of the essentials.

I agree.  I'm dropping the <angle> argument from radial gradients
right now, actually, for precisely that reason.

Now, do you believe that it's easier to learn, type, and/or read to do:

background-image: radial-gradient(silver, white);
background-position: -50% -50%;
background-size: 200% 200%;

...than:

background-image: radial-gradient(top left, silver, white);

?

~TJ

Received on Tuesday, 30 November 2010 01:06:53 UTC