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

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

From: Liam R E Quin <liam@w3.org>
Date: Wed, 24 Jul 2013 18:54:21 -0400
Message-ID: <1374706461.15669.579.camel@localhost>
To: Dean Jackson <dino@apple.com>
Cc: Brad Kemper <brad.kemper@gmail.com>, "Tab Atkins Jr." <jackalmage@gmail.com>, www-style list <www-style@w3.org>
On Wed, 2013-07-24 at 11:14 +1000, Dean Jackson wrote:
> On 24/07/2013, at 11:07 AM, Liam R E Quin <liam@w3.org> wrote:
> 
> > On Wed, 2013-07-24 at 04:40 +1000, Dean Jackson wrote:
> > [...]
> >> It's more than backgrounds. As Tab mentions, the idea is a single
> >> image resource that can be used anywhere that accepts an image.
> > 
> > Is there a reason why they are restricted to 9 and not also 16 (giving
> > centre pieces on the edges)?
> 
> Two reasons come to mind:
> 
> - Designers typically work with 9-part images.

I don't think that's true for print.

> - The syntax for 9 part border images is already borderline confusing
> (get it? borderline!). Adding any more slices will likely explode
> brains.

Possibly, but the nested HTML div markup for centred decorations on a
border is a pain to get right too, and you can't rely on polyfills for
print engines that likely don't have JavaScript.

Thanks for replying.

-- 
Liam Quin - XML Activity Lead, W3C, http://www.w3.org/People/Quin/
Pictures from old books: http://fromoldbooks.org/
Ankh: irc.sorcery.net irc.gnome.org freenode/#xml
Received on Wednesday, 24 July 2013 22:54:51 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 24 July 2013 22:54:52 UTC