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

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

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Tue, 23 Jul 2013 09:31:34 -0700
Message-ID: <CAAWBYDC4ugaiaPjS1AwzqF3Q5R238aFAvjTVdC4zwRLJV35krg@mail.gmail.com>
To: Brad Kemper <brad.kemper@gmail.com>
Cc: Dean Jackson <dino@apple.com>, www-style list <www-style@w3.org>
On Tue, Jul 23, 2013 at 7: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? 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.

In general, a nine-slice can be useful for defining a responsive image
that resizes gracefully.

~TJ
Received on Tuesday, 23 July 2013 16:32:21 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 23 July 2013 16:32:21 UTC