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

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".

~TJ

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