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 []
>> Sent: Wednesday, November 03, 2010 3:43 PM
>> To: Sylvain Galineau
>> Cc:
>> Subject: Re: [css3-2d-transforms] Should a transformed element reflow
>> its content ?
>> On Wed, 03 Nov 2010 15:05:52 +0100, Sylvain Galineau
>> <> 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.


Received on Wednesday, 3 November 2010 15:51:24 UTC