A scoped registry for custom highlights, using the CSS Custom Highlight API under the hood.
The
LocalHighlightRegistry
class is a wrapper around the global
CSS.highlights
API, allowing multiple independent registries to coexist in the same document
without risking conflicts.
See the documentation for more info on how to use and install this package.