A paragraph of text with multiple different highlights, including some which overlap. The user has clicked on an area of the text where highlights exist. A popup is displayed where the user clicked, listing the highlights that were found at this point.

Unlock text editing use cases with highlightsFromPoint and other FromPoint APIs

Patrick Brosset -

Announcing the <code>CSS.highlights.highlightsFromPoint()</code> API, which lets you retrieve which custom highlights live at a given point in the viewport, and which unlocks powerful text editing use cases, such as tooltips, context menus, and more.

Read the article at https://blogs.windows.com/msedgedev/2025/09/25/unlock-text-editing-use-cases-with-highlightsfrompoint/