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

Re: [css3-backgrounds] Should a non-zero border-radius create a new stacking context ?

From: fantasai <fantasai.lists@inkedblade.net>
Date: Sat, 20 Nov 2010 08:42:46 -0800
Message-ID: <4CE7FA86.4060604@inkedblade.net>
To: Sylvain Galineau <sylvaing@microsoft.com>
CC: Brad Kemper <brad.kemper@gmail.com>, "www-style@w3.org" <www-style@w3.org>
On 11/20/2010 08:25 AM, Sylvain Galineau wrote:
> I never said it shouldn't clip to the inner corner curve. That's not at all the point. If the element with border-radius in my
> original testcase created a new stacking context then the blue box moves below the green one (as it also will if you give the
> parent opacity < 1, or a transform). It still must clip to the parent's curve within that parent's stacking context.
>
> So no one is questioning whether the element should clip to the border curve. The suggestion is that the non-zero radius would
> result in a different z-order for the blue box.

What Brad is saying is that the problem you're running into wrt stacking
contexts has nothing to do with whether the border is curved or square.
(Give the element some negative margins, and you'll get the same behavior
with a square border.)

Having non-zero border radius affect the z-order doesn't follow from the
problem you describe: it's not creating any new or interesting stacking
effects. It's just changing the shape of the clip mask.

~fantasai
Received on Saturday, 20 November 2010 16:43:24 GMT

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