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

Re: CSS3 draft: multiple backgrounds concerns

From: Charlie Hayes <cosmotic@cybercoment.com>
Date: Thu, 16 Feb 2006 18:33:13 -0500
Message-Id: <41F162CB-CEB4-448D-A3AF-5C42C54B6FFB@cybercoment.com>
Cc: David Hyatt <hyatt@apple.com>, www-style@w3.org
To: Laurens Holst <lholst@students.cs.uu.nl>

Border-radius will only work in the most simple of cases. There needs  
to be a more flexible way to get more complicated borders than border- 

Obviously multiple-background images and border-image were designed  
to help here, but they only help in a few situations. More work needs  
to go into coming up with a better way to do this sort of thing, and  
I really REALLY don't want to wait until CSS4 to get it.

-Charlie Hayes

On Feb 16, 2006, at 6:06 PM, Laurens Holst wrote:

> 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 described).
> 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.
> ~Grauw
> -- 
> 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:33:49 UTC

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