W3C home > Mailing lists > Public > www-style@w3.org > December 2013

Re: [css-containment] ED of Containment ready for review (was overflow:clip)

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Mon, 2 Dec 2013 18:38:05 -0800
Message-ID: <CAAWBYDC45GkmqgO=n32+ogc3gccq1HZQ_e24PUhxOVhyudYcKA@mail.gmail.com>
To: Charles Walton <charleswalton@google.com>
Cc: Simon Fraser <smfr@me.com>, www-style list <www-style@w3.org>
On Mon, Dec 2, 2013 at 5:12 PM, Charles Walton <charleswalton@google.com> wrote:
> "The element must not provide a scrolling user interface"
> This is rough - I'm guessing there's a terrible hidden cost in enabling
> scrolling?

Yup - if it's possible to scroll, then we have to (a) pay attention to
the elements "below the fold", even if they'd otherwise be ignorable,
and (b) paint at least some of the off-screen stuff, so that it'll be
smooth if you start scrolling.

Even if you never scroll at all, as long as it's *possible* to do so,
such as in "overflow:hidden", you incur some of these costs.

If you want to scroll via JS, don't use 'contain', just use "overflow:hidden".

Received on Tuesday, 3 December 2013 02:38:52 UTC

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