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

Re: [css3-2d-transforms] Should a transformed element reflow its content ?

From: Simon Fraser <smfr@me.com>
Date: Wed, 03 Nov 2010 21:54:59 -0700
Cc: Sylvain Galineau <sylvaing@microsoft.com>, Řyvind Stenhaug <oyvinds@opera.com>, "www-style@w3.org" <www-style@w3.org>
Message-id: <4FE08C08-0095-4E24-8773-5E20377A57E5@me.com>
To: robert@ocallahan.org
On Nov 3, 2010, at 8:28 pm, Robert O'Callahan wrote:

> On Thu, Nov 4, 2010 at 4:54 AM, Sylvain Galineau <sylvaing@microsoft.com> wrote:
> But why would it be any different with overflow:auto ? To oversimplify,
> my expectation is that transforms are applied to the laid-out element
> before it's painted. So if the element does not cause overflow before
> transform, I expect it to look the same after transform whether or not
> the transform is causing the parent to overflow.
> 
> In Firefox, the post-transform area of an element contributes to the "scrollable overflow area" of its parent. This allows the user to scroll transformed objects into view. This seems desirable to me.

WebKit now does this too, and the spec requires it.

I think what confuses Sylvain is that the content is laid out with the scrollbars already present, and then transformed, but how did it know it was going to overflow before applying the transform?

Simon
Received on Thursday, 4 November 2010 04:55:36 GMT

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