W3C home > Mailing lists > Public > www-style@w3.org > January 2009

Re: [css3-background] does border-radius round the border-image ?

From: Brad Kemper <brad.kemper@gmail.com>
Date: Sat, 10 Jan 2009 16:34:23 -0800
Cc: "L. David Baron" <dbaron@dbaron.org>, www-style@w3.org
Message-Id: <B81D4051-AFF7-43DF-A724-63E994F9798D@gmail.com>
To: David Hyatt <hyatt@apple.com>



On Jan 10, 2009, at 12:17 PM, David Hyatt wrote:

>
> I think border-radius should clip the border-image, just as it clips  
> the background.  In many cases I believe the border-radius should  
> clip the foreground too.  Border-image alone is not able to dictate  
> this clipping behavior, so a designer *is* going to need to set both  
> in order to clip the background and foreground content, regardless  
> of fallback intentions.

No question that it should clip the background (and foreground  
replaced elements) when there is no border-image. I can even see the  
point of maintaining that behavior on those parts (but not border- 
image) when border-image IS in use. The border-image might contain a  
more complex clipping (using a PNG, for instance), than the border- 
radius could achieve on its own. That might be the use case for using  
them together, in fact. The only use case for having the border-radius  
clip the border-image, is if they both have the exact same path to  
clip to anyway.

> I think it's inconsistent that this clip effect, which we'd like to  
> apply to the whole box in the case of content like images, would  
> "turn off" just for a single piece of the box (a specified border  
> image).  I don't think the fallback use case is particularly  
> interesting or relevant here.

The turning off would be similar to how the other border properties  
are turned off, and the more traditional border is not generated.

The fallback use case is what I image a major reason would be for  
using border-image and border-radius together. Especially if images  
are turned off in the browser or have not loaded yet.

>
>
> dave
> (hyatt@apple.com)
>
> On Jan 9, 2009, at 6:27 PM, L. David Baron wrote:
>
>>
>> On Friday 2009-01-09 16:20 -0800, Brad Kemper wrote:
>>> # Specifies an image to use instead of the borders created by the
>>> ‘border-style’, 'border-width',  'border-color', 'border-radius',  
>>> and
>>
>> border-width does matter some of the time.
>>
>>> 'box-shadow' properties and an additional background image for the
>>> element. Unless the value is ‘none’ or if the image cannot be  
>>> displayed,
>>> the element will be displayed as if border-style and 'box-shadow'  
>>> had
>>> value of 'none' and 'border-radius' had a value of 0, and only
>>> 'border-image' will be used to generate any border, curved corner,  
>>> or box
>>> shadow effects.
>>
>> If the border-image had the curve built in, wouldn't you want the
>> border-radius to continue to apply to the background?
>>
>> -David
>>
>> -- 
>> L. David Baron                                 http://dbaron.org/
>> Mozilla Corporation                       http://www.mozilla.com/
>>
>
>
Received on Sunday, 11 January 2009 00:35:06 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:20:15 GMT