Scroll-to-top widgets (they can be as simple as `<a href="#">Scroll to top</a>`) are primarily for touchscreen users, especially those with motor disabilities.
I don't have a disability and I don't see how anyone could use a scrollbar on a phone. At least on an iPhone they seem purely for visualizing scroll position, not to change scroll position.
Scroll-to-top widgets can pose accessibility problems by inadvertently covering other page content, particularly focusable content. They might be helpful for some users on very long pages.
Michal Bryxí (npub1ndx…xu0k)