Browser search on acts weird when there's a code snippet

When you use browser search on Safari and there’s code snippet in comments that have a scroll bar, it adds boxes around those keywords and does not hide them when you scroll in the code snippet.
Here’s an example [semantic-dom-diff][chai-dom-diff] Shadow DOM Snapshot testing fails · Issue #1540 · open-wc/open-wc · GitHub