On 29/09/19 1:54 PM, Cameron McCormack wrote:
How useful is scroll anchoring outside of the two cases mentioned in https://drafts.csswg.org/css-scroll-anchoring/#intro i.e. images loading and ad iframes being inserted? Would it be feasible to make scroll anchoring a much less general mechanism, and to scope it down to handling these specific cases?
The virtual-scroller[1]/rendersubtree[2] demo that the Chromium team demoed at TPAC was also relying on scroll anchoring.
When you use the scrollbar to jump to a given spot, the custom scroller element then makes surrounding elements visible. Making them visible changes them from using their content-size [3] placeholder size to the real size, and we don't want the viewport to move in the process.
- Matt [1] https://github.com/WICG/virtual-scroller [2] https://github.com/whatwg/html/pull/4862 [3] https://github.com/w3c/csswg-drafts/issues/4229 _______________________________________________ dev-platform mailing list dev-platform@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-platform