AgregoreWeb / agregore-browser

A minimal browser for the distributed web (Desktop version)
https://www.youtube.com/watch?v=TnYKvOQB0ts&list=PL7sG5SCUNyeYx8wnfMOUpsh7rM_g0w_cu&index=14
GNU Affero General Public License v3.0
715 stars 66 forks source link

Support Text Fragment scrolling #186

Closed RangerMauve closed 1 year ago

RangerMauve commented 2 years ago

There's a WICG spec for text fragments which lets you specify a range of text in the # portion of a URL in order to have the browser automatically scroll to it. https://github.com/WICG/scroll-to-text-fragment

It'd be useful if we could integrate this functionality:

Given we use Electron and Chromium, it might already be possible to do the scrolling thing. Else we'd need to do it manually.

Help to look into how this could be done or a PR which adds the functionality would be very much appreciated.

RangerMauve commented 1 year ago

I just tested this out and it seems to already work!

For example: https://web.dev/text-fragments/#:~:text=deep%20link