W3C home > Mailing lists > Public > www-style@w3.org > February 2006

Re: CSS3 draft: multiple backgrounds concerns

From: Laurens Holst <lholst@students.cs.uu.nl>
Date: Fri, 17 Feb 2006 00:06:52 +0100
Message-ID: <43F5058C.5080904@students.cs.uu.nl>
To: Charlie Hayes <cosmotic@cybercoment.com>
Cc: David Hyatt <hyatt@apple.com>, www-style@w3.org

Charlie Hayes schreef:
> I looked into border images when I was experimenting but decided it 
> wouldn't work for what I wanted.
> I thought I would give it a try so I downloaded the latest nightly and 
> tried it. It works pretty well except that I want the contents of the 
> box to be on top of the border. Since negative padding isn't an 
> option, I can't think of a way to get it to look like what I want 
> without adding another property, which would most likely break the box 
> model.

Yeah, that’s indeed an architectural problem with border-image. If you 
want a rounded corner with a radius of 15x15 pixels, the borders have to 
be 15 pixels, while in practice for text to stay inside it only really 
needs a border of 5 pixels, due to its shape.

I think CSS should fix this, somehow. It seems to me that the prime use 
case for multiple backgrounds functionality to exist is to use it for 
border images, because the border-image functionality is flawed, but 
using multiple backgrounds for borders is also flawed (as Charlie 

Maybe it’s useful to look at border-radius, which takes the border 
width, and lets any additional spacing that is needed because of the 
rounded corner be solved by means of padding. A similar concept could be 
applied to border-images.

If border-image would be extended to fix this (e.g. have a different 
size be specified for the border images than for the border width, or 
allow negative paddings), I’d say multiple backgrounds functionality 
could be removed, as it loses much of its appeal.


Ushiko-san! Kimi wa doushite, Ushiko-san!!
Laurens Holst, student, university of Utrecht, the Netherlands.
Website: www.grauw.nl. Backbase employee; www.backbase.com.
Received on Thursday, 16 February 2006 23:07:49 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:27:23 UTC