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

Re: background-transform (Was: Re: [css3-images] Repeating oblique gradients)

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Tue, 7 Dec 2010 21:33:50 -0800
Message-ID: <AANLkTimJTKqCj0tyHLxm9ADCN4e5zL_b+Nyq3Lf1XuBz@mail.gmail.com>
To: Rik Cabanier <cabanier@adobe.com>
Cc: Sylvain Galineau <sylvaing@microsoft.com>, Simon Fraser <smfr@me.com>, Leif Arne Storset <lstorset@opera.com>, Brad Kemper <brad.kemper@gmail.com>, www-style list <www-style@w3.org>
On Tue, Dec 7, 2010 at 9:08 PM, Rik Cabanier <cabanier@adobe.com> wrote:
> So, what you're proposing is something like:
> @image{
>        name: <string>;
>        src: <url>;
>        opacity: <float>;
>        transform/transform-origin/width/height/etc
> }
>
> Background-image or border-image could then refer to the name specified in the @image instead of to a URL.

Yes, something like that.


> I'm unsure where to the line is drawn between the properties of @image and the ones of background/border-image.

If it's a property that's useful outside of backgrounds, it should be
generally applicable through @image or a similar mechanism.


>> If the image definition says 'use the image at this URL, make it 100x100 then rotate 15 degrees' and the image bounding box adjusts for the transform, wouldn't it tile as you expect ?
> I agree that it doesn't make much sense to do square tiling of the rotated image.

That's not necessarily true.  If I have a logo, for example, I may
want to rotate it slightly for visual effect, but still tile it like a
rectangular image.


> There was a question about the use-case for having a transform on a background image.
> Adobe Illustrator and Flash Pro both support transforms on tiling images. Flash can only do it on images and gradients while PDF and postscript can do it on any type of content.
> In the PDF world this feature is used very often but I'm unsure how common it is in Flash. This feature is also present in XAML and the UI frameworks of Windows and Mac.

Ah, cool.  Do you have any examples you can share?  That would help a ton.

~TJ
Received on Wednesday, 8 December 2010 05:34:42 GMT

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