W3C home > Mailing lists > Public > www-style@w3.org > July 2013

Re: [css4-background] 9-part slicing images in background-image

From: Dean Jackson <dino@apple.com>
Date: Wed, 24 Jul 2013 04:40:33 +1000
Cc: "Tab Atkins Jr." <jackalmage@gmail.com>, www-style list <www-style@w3.org>
Message-id: <BC0F7A1A-8392-4ED3-B747-44D30C964BBD@apple.com>
To: Brad Kemper <brad.kemper@gmail.com>

On 24/07/2013, at 12:00 AM, Brad Kemper <brad.kemper@gmail.com> wrote:

> On Jul 22, 2013, at 4:57 PM, "Tab Atkins Jr." <jackalmage@gmail.com> wrote:
> 
>> On Mon, Jul 22, 2013 at 4:44 PM, Dean Jackson <dino@apple.com> wrote:
>>> It would be very nice if the background-image property provided the same functionality as border-image with slicing and stretching 9-part images. Of course there would be some syntactic issues, but 9-part designs are very popular and powerful, especially with responsive designs. It is a shame they are only supported by borders.
>>> 
>>> Is there interest in such an enhancement?
>> 
>> If so, I feel strongly that it should be a generic image manipulator,
>> rather than a specialization for 'background'.  Being able to 9-slice
>> an image and specify stretching behavior sounds possibly useful!
> 
> What could you do with it that can't be done with border image?

All the things a background can do that a border can't. e.g. positioning, repeating, multiple images

> If it is just multiple layers, then maybe that could be added to border image. I'd rather not have multiple ways of creating the exact same effects.

It's more than backgrounds. As Tab mentions, the idea is a single image resource that can be used anywhere that accepts an image.

Dean
Received on Tuesday, 23 July 2013 18:41:13 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 23 July 2013 18:41:14 UTC