在 URL 的 HTML 页面中选择并以黄色突出显示的文本

Text selected and highlighted in yellow in an HTML page from the URL

Google 最近(2020 年 6 月)在 Chrome 中推出了一项新功能,该功能允许 select 通过传递来自URL.

这是一个例子:

https://www.google.com/#:~:text=About

结果如下所示:

这是 Google Chrome 具体的,但不需要任何扩展。 Firefox 不支持它(截至 2020 年 6 月)。 Safari 似乎是"compliant"。 Here is an article mentioning this feature.

问题:is/What 哪里是确切的规范? ":~:"可以做什么或不能做什么?

这里有一些解释:

https://github.com/WICG/scroll-to-text-fragment

如果您有 Chrome ;-),请在此处 link 突出显示相关部分!

https://github.com/WICG/scroll-to-text-fragment#:~:text=Proposed%20Solution