Join Nostr
2025-09-16 11:43:31 UTC

Patrick Brosset on Nostr: The CSS Custom Highlight API lets you style **ranges** of text without creating new ...

The CSS Custom Highlight API lets you style **ranges** of text without creating new nodes in the DOM.

And now, with the new highlightsFromPoint() method, you can even find custom highlights under the cursor and unlock cool text editing experiences.

See https://developer.mozilla.org/docs/Web/API/HighlightRegistry/highlightsFromPoint