W3C home > Mailing lists > Public > www-style@w3.org > October 2015

Re: [css-transforms] How should scrollbars react to a scaled-down element?

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Wed, 7 Oct 2015 17:43:54 -0700
Message-ID: <CAAWBYDDfy0ghxEB5jnSTP3LMTbGo1=p=Wq5GUizw3RySS6QGJA@mail.gmail.com>
To: "Robert O'Callahan" <robert@ocallahan.org>
Cc: www-style list <www-style@w3.org>
On Wed, Oct 7, 2015 at 5:28 PM, Robert O'Callahan <robert@ocallahan.org> wrote:
> On Thu, Oct 8, 2015 at 10:56 AM, Tab Atkins Jr. <jackalmage@gmail.com>
> wrote:
>>
>> I presume that the spec should be corrected to say that the effects of
>> the transform must be taken into account *in addition to* the
>> original, pre-transform, geometry.  Correct?
>
> Probably not. I think what's happening there, in Firefox at least, is that
> the anonymous box child of .outer representing the "scrolled content" is a
> block, and its height is 400px (since the transform does not affect layout).
> And it's that anonymous box child that's triggering the overflow. You'll
> notice that the same issue does not occur in the horizontal direction, since
> block widths do not expand to contain their children, but (anonymous) block
> heights do.
>
> I'd consider this a Firefox bug.

Interesting.  So you're okay with the discontinuity that adding a
single letter of content below the .inner will trigger a scrollbar due
to 400+εpx of content?

I'm not super happy with a tiny change in content causing such a huge
change in behavior.

~TJ
Received on Thursday, 8 October 2015 00:44:41 UTC

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:08:57 UTC