W3C home > Mailing lists > Public > www-style@w3.org > April 2010

Re: [css3-background] Curved borders intersecting backgrounds of inner boxes

From: fantasai <fantasai.lists@inkedblade.net>
Date: Mon, 12 Apr 2010 11:24:53 -0700
Message-ID: <4BC36575.6030202@inkedblade.net>
To: Zack Weinberg <zweinberg@mozilla.com>
CC: Brad Kemper <brad.kemper@gmail.com>, W3C Emailing list for WWW Style <www-style@w3.org>
On 04/12/2010 08:56 AM, Zack Weinberg wrote:
> Brad Kemper<brad.kemper@gmail.com>  wrote:
>>
>> It is pretty weird that Webkit still clips to the outside of the
>> border at the curved borders, when the overflow is 'hidden', and that
>> mozilla still doesn't clip to any curve. I brought this up some time
>> ago, and the following was added to the backgrounds and borders
>> module to clarify what should happen:
>>
>>> Backgrounds, but not the border-image, are clipped to the
>>> appropriate curve (as determined by ‘background-clip’). Other
>>> effects that clip to the border or padding edge (such as ‘overflow’
>>> other than ‘visible’) also must clip to the curve. The content of
>>> replaced elements is always trimmed to the content edge curve.
>>> Also, the area outside the curve of the border edge does not accept
>>> mouse events on behalf of the element.
>
> I think that language does not clearly say which curve the background
> of an inner element should be clipped to.

Which curve the inner element should be clipped to is defined by the
property that does the clipping. I suppose that first sentence is
unclear in that it doesn't say whose backgrounds are clipped by the
curve. It should say "A box's backgrounds, but not its border-image,
are clipped..."

~fantasai
Received on Monday, 12 April 2010 18:25:28 GMT

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