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 08:50:47 -0700
Cc: Řyvind Stenhaug <oyvinds@opera.com>, "www-style@w3.org" <www-style@w3.org>
Message-id: <C6F5A271-0587-4455-8135-CB1963F0E377@me.com>
To: Sylvain Galineau <sylvaing@microsoft.com>
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.

Simon
Received on Wednesday, 3 November 2010 15:51:24 GMT

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