RE: [css-display-viewport] Enabling fast layout for web apps via isolation

> Transforms do affect layout, in that they affect overflow. Moving an element around inside an overflow:scroll element should update the scrollbars.

Indeed. I was told that before already, but I keep forgetting it :) However, in most cases, it's snappier than just modifying the position directly.


> Not necessarily. WebKit has a "layout positioned objects only" optimization that attempts to make moving out-of-flow positioned elements fast.

Granted, I should have said "in the general case", but most of the time this is just what's happening. Let's take the case of infinitely scrolling lists, most of them have to use non-positioned objects because they want a vertical flow.


> This is not true on many mobile platforms, which "flatten" iframes

I guess it only happens on scaled down websites, right? I do believe that if the Sencha team did use iframes to isolate their webcomponents and claim this was a very important performance improvement (despite memory and marshalling issue), they probably didn't face this issue.

BTW, seamless iframes are also doing content-size-retrofitting in Chrome, and it's possible that we may want that in the case of "height: auto" local viewports, too. 		 	   		  

Received on Thursday, 20 December 2012 21:07:00 UTC