I have customised my notes with a css snippet to have a white backround with black headings and text, whilst in dark mode. I apply that with a css class called “light” on a per note basis.
Everything works ok except in Reading mode, when I click links to a heading in the Outline or from a TOC. The heading becomes invisible for a couple seconds. In dev tools I can see the heading “is-flashing”. I have tried any number of things to resolve this but have been unsuccessful. For example I have tried the below snippet which does work for Edit mode but not Reading mode.
clicking on something in Search or from the Outline disappears the is-flashing result for a few seconds as you describe (in reading view).
Adding this in fixed it up on my end. mix-blend-mode: darken is necessary and (of course) you can change the background-color, but this line does need an !important.