0

By adding the code #:~:text=[TEXT TO HIGHLIGHT] after a URL, the text is highlighted by browsers (I think all, except firefox). For example, see how the "Top question" text is highlighted on the stackoverflow home page: https://stackoverflow.com/#:~:text=Top%20Questions

I think it's some kind of special CSS for browser. Does anyone know how and where this feature is documented?

enter image description here

Juri Rudi
  • 163
  • 9
  • FWIW, this does absolutely zilch for me in both Safari and Chrome. – deceze Nov 30 '22 at 15:37
  • try editing the example url, removing "https://" before "stackoverflow.com/#:~:text=Top%20Questions", please, and then press return – Juri Rudi Nov 30 '22 at 15:39
  • try this: https://google.com/#:~:text=google the word "google" in the upper left is highlighted – Juri Rudi Nov 30 '22 at 15:41
  • 1
    All of yours links don't work for me, but adding it to the current URL with some text that appears on this page works… Anyway, I linked to an explanation above. – deceze Nov 30 '22 at 15:42

0 Answers0