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

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

From: Sylvain Galineau <sylvaing@microsoft.com>
Date: Wed, 3 Nov 2010 15:54:31 +0000
To: Simon Fraser <smfr@me.com>
CC: Řyvind Stenhaug <oyvinds@opera.com>, "www-style@w3.org" <www-style@w3.org>
Message-ID: <045A765940533D4CA4933A4A7E32597E287C8DF7@TK5EX14MBXC115.redmond.corp.microsoft.com>
> From: Simon Fraser [mailto:smfr@me.com]
> Sent: Wednesday, November 03, 2010 4:51 PM
> To: Sylvain Galineau
> Cc: Řyvind Stenhaug; www-style@w3.org
> Subject: Re: [css3-2d-transforms] Should a transformed element reflow
> its content ?
> 
> On Nov 3, 2010, at 8:02 am, Sylvain Galineau wrote:
> 
> >> From: Řyvind Stenhaug [mailto:oyvinds@opera.com]
> >> Sent: Wednesday, November 03, 2010 3:43 PM
> >> To: Sylvain Galineau
> >> Cc: www-style@w3.org
> >> Subject: Re: [css3-2d-transforms] Should a transformed element
> reflow
> >> its content ?
> >>
> >> On Wed, 03 Nov 2010 15:05:52 +0100, Sylvain Galineau
> >> <sylvaing@microsoft.com> wrote:
> >>
> >>> The middle test applies the same transform but the parent has
> >>> overflow:scroll. In this case it seems the text is being reflowed
> >>> in most implementations today i.e. it no longer wraps as the
> >>> reference element does. (You may have to carefully examinate which
> >>> word begins a given line to spot the difference).
> >>
> >> 100% of 200px is not the same as 100% of (200px - scrollbar width).
> Try
> >> removing the transform rules, the 'scroll' version still wraps
> >> differently.
> >>
> >> (On top of that, Opera currently draws transformed text a little
> >> differently, which I consider a bug.)
> >
> > OK, let me clarify. It must be noted that this testcase assumes the
> > content being transformed does not overflow in the absence of the
> > transform i.e. the overflow is caused *by* the transform. In this
> > case I don't understand how the latter impacts the rendering of the
> > transformed element. You can still see the different when overflow
> > is auto.
> 
> Even without any transforms, the wrapping of the text in the overflow:
> scroll
> case is different because of the width of the scrollbar, as Řyvind
> pointed out.
> 
> Give .lorem a width of 200px, rather than 100%, and you'll get the same
> wrapping,
> with or without the scrollbar.

I stand correct on overflow:scroll. My bad.

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.
Received on Wednesday, 3 November 2010 15:55:05 GMT

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