06-19-2025 11:10 PM
I'm setting a highlight for a Range in a shadow-root using CSS.highlight.set('search-results-active', new Highlight(range1)). I've confirmed that the pseudo-element styles for the highlight have been injected into the page, and also verified that there's no error with range1. It works normally in Chrome, but the highlight style doesn't appear in Firefox.
The highlight style of a normal document is normal.