4 ms·
What's this syntax from? Is there a browser that implements it as a content-relative anchor? It looks convenient. #:~:text=
by perihelions 5y ago
What's this syntax from? Is there a browser that implements it as a content-relative anchor? It looks convenient.
#:~:text=
- gus_massa 5y agoIt's call "Text Fragments", and it was introduced to Chrome more than one year ago. https://github.com/WICG/scroll-to-text-fragment https://github.com/WICG/scroll-to-text-fragment I think it works in Chrome and Edge, but not in Firefox.
- perihelions 5y agoThanks! Indeed, it seems to be just those for now: https://caniuse.com/url-scroll-to-text-fragment https://caniuse.com/url-scroll-to-text-fragment
- hangtwenty 5y agoIn a Chrome browser on desktop, you can right click and "Copy Link to Highlighted Text". That's the context (hah, pun) where I know it from. It's really useful!