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

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

From: Robert O'Callahan <robert@ocallahan.org>
Date: Thu, 4 Nov 2010 20:31:43 +1300
Message-ID: <AANLkTinqHZ6LoDjiVWQS517PwV-jL7Evw5cSU02ru3CX@mail.gmail.com>
To: Sylvain Galineau <sylvaing@microsoft.com>
Cc: Simon Fraser <smfr@me.com>, Øyvind Stenhaug <oyvinds@opera.com>, "www-style@w3.org" <www-style@w3.org>
On Thu, Nov 4, 2010 at 6:35 PM, Sylvain Galineau <sylvaing@microsoft.com>wrote:

>  It **is** different from the content without a transform, that’s why it’s
> confusing. The pre-transform content causes no overflow whatsoever. Since
> scaling of that content is what causes the overflow I can’t expect the
> scrollbar to affect what the transform scales.
>
>
>
> I understand the rendering for overflow:scroll. For overflow:auto, it’s as
> if you figure out whether the transformed element will cause overflow then
> reflow it as if scrollbars where there before transforming it. I don’t think
> that makes sense.
>

I continue to claim that exactly the same thing can happen with
non-transformed content. You "figure out whether the content will cause
overflow, then reflow it as if scrollbars were there."

Of course, what we all actually do in that situation is iterate. In Gecko
our scrollbar layout code needed no additional work to handle the presence
of transforms.

 Modulo the scrollbars needed to see the content, I think expect the
> overflow:auto case to look just like the overflow:visible one.
>

I think that would be weird. You'd be saying that with overflow:auto, the
presence of a scrollbar affects the layout of descendant elements, except
for those that are transformed.

Rob
-- 
"Now the Bereans were of more noble character than the Thessalonians, for
they received the message with great eagerness and examined the Scriptures
every day to see if what Paul said was true." [Acts 17:11]
Received on Thursday, 4 November 2010 07:32:16 GMT

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