cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

【bug】Firefox 140.0beta Added support for the Custom Highlight API, cannot apply to shadow-root

ImSwordTooth
Making moves

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.

0 REPLIES 0