-
Notifications
You must be signed in to change notification settings - Fork 28
Scroll anchoring on layout #2
Comments
I've wanted to do something like this in Gecko for years; see https://bugzilla.mozilla.org/show_bug.cgi?id=43114 . I was motivated by some other use cases as well, such as better position preservation when resizing a window (especially in a document like a specification, and especially when the current scroll position is an anchor). I never quite had the time to finish it... |
We have a working prototype of Scroll Anchoring in the latest Dev/Canary channel.
We would love feedback on the following: Field reports to https://goo.gl/HGPXz9
Developer insights (as comments to this issue):
@dbaron we would love to hear your thoughts or what you've learned from trying in the past. Known caveats (master crbug):
Overall, we expect lots of iterations before we are happy with it. |
I have added an informal explainer doc for scroll anchoring at https://github.com/WICG/interventions/blob/master/scroll-anchoring/explainer.md. It includes a description of the algorithm and an opt out mechanism via a CSS "overflow-anchor" property. Feedback is welcome. :) |
Adding Matt Rakow to issue to make him aware @ChumpChief |
I've updated the explainer doc for scroll anchoring to include the latest changes that have been made to Chrome's implementation: I'd love to get feedback from the WICG particularly on any of the first four items under "Open Issues":
|
FYI: the scroll anchoring docs have been moved out of the interventions repo and into: There is a proposal to transfer the ScrollAnchoring repo to WICG at: Please file any new scroll anchoring issues at: |
First shipped in Chrome 56 |
(As noted in #72, we intend to archive this repository and are thus triaging and resolving all open issues) This seems to be resolved cleanly with a spec at https://drafts.csswg.org/css-scroll-anchoring/ and implementations in Chrome and Firefox. Closing the issue. |
I've frequently heard users complain that they'll be reading the main content of a page (such as a news article) and an image or other content will finish loading above their current scroll position. In the current behavior, this pushes the content down, jarring the UX. The users I've heard from report this as a major annoyance.
Instead, perhaps we should take a reasonable guess at what is the "main" content of the page, and anchor the scroll position to that. Then when the page shifts, the main content stays in the same position in the viewport.
The text was updated successfully, but these errors were encountered: