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: Sylvain Galineau <sylvaing@microsoft.com>
Date: Mon, 22 Nov 2010 03:43:34 +0000
To: "robert@ocallahan.org" <robert@ocallahan.org>
CC: Brad Kemper <brad.kemper@gmail.com>, "www-style@w3.org" <www-style@w3.org>
Message-ID: <045A765940533D4CA4933A4A7E32597E2A4E1E51@TK5EX14MBXC113.redmond.corp.microsoft.com>
The argument is *not* that it should be done because it was done for opacity < 1 or transform != none. The argument is that the extra complexity is very likely unnecessary in practice because if such scenarios were common then opacity < 1 would break a lot of pages and/or require workarounds.

The penalty is not high. But it's real and I don't like making things harder than they need to be simply because 'that's the way it is'. Especially when several implementors agree that non-visible overflow is more complex than it needs to be. Just because we can't re-do the entire model doesn't mean we can't or shouldn't do it when and where we can.

From: rocallahan@gmail.com [rocallahan@gmail.com] on behalf of Robert O'Callahan [robert@ocallahan.org]
Sent: Sunday, November 21, 2010 3:58 PM
To: Sylvain Galineau
Cc: Brad Kemper; www-style@w3.org
Subject: Re: [css3-backgrounds] Should a non-zero border-radius create a new stacking context ?

I think it should be relatively easy to implement this without a major code complexity penalty and without a performance penalty for pages that do not use border-radius with non-visible 'overflow'. You already have to track clip rects for the children of the element with non-visible 'overflow'. So extend the abstraction from 'clip rect' to 'clip rect or the intersection of a list of clip paths'.

I disagree with the argument that we should ease the implementation burden by inducing a stacking context because we did for opacity < 1. I think we induce a stacking context for opacity < 1 not because of implementation issues, but because group opacity is meaningless if the elements in the group are not contiguous in z-order ... at least, I don't know of any rational way it could be defined.

I agree that making non-visible 'overflow' induce a stacking context would have been a good idea, but it's too late now. Given we have to deal with interleaving of clipped and non-clipped content, generalizing the clipping shapes without adding strange new side effects seems the most reasonable thing to do.

"Now the Bereans were of more noble character than the Thessalonians, for they received the message with great eagerness and examined the Scriptures every day to see if what Paul said was true." [Acts 17:11]
Received on Monday, 22 November 2010 03:44:09 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:38:41 UTC