Re: [css4-images] First draft of css4-images, feedback requested

On Mon, Nov 5, 2012 at 4:18 PM, Rik Cabanier <cabanier@gmail.com> wrote:
> On Tue, Aug 7, 2012 at 8:22 AM, Tab Atkins Jr. <jackalmage@gmail.com> wrote:
>> On Mon, Aug 6, 2012 at 10:57 PM, Sebastian Zartner
>> <sebastianzartner@gmail.com> wrote:
>> > I am missing the definition of a rectangular gradient like the example
>> > at
>> > pixel2life.com shows [1].
>>
>> That should just be an addition to the shape keywords you can provide
>> to radial-gradient().  My initial draft long ago had square,
>> rectangle, diamond, rhombus, and box (use the box's own shape,
>> respecting rounded corners, etc.).  I removed them because there was
>> no graphics library support for them.  (The same thing might kill
>> conic gradients.)
>
> Diamond gradients could easily be emulated (they're basically 2 axial
> gradients with clipping).
> It's a fairly useful construct so it would be nice to have in the spec.

Yeah, square and diamond are doable with linear gradients and
clipping.  Roc said early on in Images 3 that they'd be doable, but we
purposely stuck to stuff that could be done directly with the platform
graphics APIs.

I guess I don't have a problem with speculatively adding them to the
Images 4 spec.

~TJ

Received on Tuesday, 6 November 2012 00:33:14 UTC