Firefox 135 Nightly now have support for CSS Custom Highlight API, meaning it gets supported in all major browsers.
Only 4 steps is needed:
1. Set ::highlight styles in CSS
2. Define highlight ranges using Range class
3. Create Highlight instance
4. Link Highlight instance with CSS styles
about 1 year ago