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

Re: Proposal for overflow painting order

From: David Hyatt <hyatt@apple.com>
Date: Wed, 04 Feb 2009 18:30:34 -0600
Cc: "www-style@w3.org List" <www-style@w3.org>
Message-id: <C26EFC91-535C-468B-A1BB-703F8C8F74ED@apple.com>
To: robert@ocallahan.org
On Feb 4, 2009, at 5:48 PM, Robert O'Callahan wrote:

> On Thu, Feb 5, 2009 at 11:55 AM, David Hyatt <hyatt@apple.com> wrote:
> I'd prefer to see overflow special-cased such that it does not  
> interleave with other normal flow content by default.  I don't think  
> there is any real benefit to be gained by allowing such  
> interleaving. It is also more difficult to encapsulate the painting  
> of the overflow (e.g., if you wanted to optimize it for accelerated  
> compositing) if the overflow block has to break up its painting  
> because of surrounding normal flow content.
>
> I'm not really sure what the last sentence means. In Gecko, we do  
> quite a bit of analysis to figure out if blitting is possible; for  
> example, we disallow blitting if the scrollable element is  
> transparent and the content behind it is not a single solid color,

Sure, but in an accelerated compositing world, you can imagine the  
overflow object having an offscreen buffer associated with it.  In the  
example you just cited, blitting would still be possible, since you  
would be able to blit in the buffer itself when scrolling happens.  It  
wouldn't matter that the scrollable element was transparent or that  
the content behind is not a single solid color.

However in the example of content from outside the overflow section  
actually intruding into and interleaving with the painting of the  
overflow section, you can't do this.

I also think authors using negative margins could cause unintentional  
overlap that could negatively impact performance of these overflow  
sections.

dave
(hyatt@apple.com)
Received on Thursday, 5 February 2009 00:31:15 GMT

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