Sun.Dec 06, 2020

article thumbnail

Resize-Resilient `content-visiblity` Fixes

Alex Russell

The solution in the last post on content-visibility and how to prevent jumpy scrollbars had a few drawbacks: Because content-visiblity: visible was never removed from elements, painting and layout invalidation inevitably grew slower as more and more content was added to the visible tree by scrolling. Resizing, in particular, suffers on large documents of this sort, and jumping "far" into a document can still be jittery.

Code 41