I've researched this extensively and found one potential reason for the problem: if the TOC is long enough to extend below the screen and a scroll bar appears, the text in these topics appears bold. I noticed that if I add the specification .sidenav-wrapper {overflow: hidden;} to the CSS file, the problem disappears because the scroll bar is not visible in the TOC (normally it has overflow: auto;). This, of course, makes the site unusable and does not provide a functional solution to fix the issue. The TOC has always been quite extensive, and the problem hadn't occurred before.
Another observation is that if I remove all images from the topic, then the problem does not occur in that topic, even if the TOC is long enough to have a scroll bar. So, the problem seems to occur only in topics that contain images and a menu with a visible scroll bar.
Can anyone suggest what I could do to eliminate the problem? The page content looks very unsightly when the text appearance suddenly changes.
I don't think I've made any changes to my CSS that could cause this problem. I also found a previous build of my website on my computer from a year ago, and this problem occurs there as well. I am quite certain that a year ago, the issue did not exist, and the text appeared normally in topics, so I assume something has changed in Chrome in the meantime.
Instructions to reproduce the problem (fullscreen, full HD display):
- Open my website, for example, this topic: https://help.inschool.fi/VAKA/fi/Viesti ... ominen.htm
- Click the "Laajenna ohje" button (this opens the drop-down headings) or manually open the headings one by one.
- Scroll down the page using the mouse wheel or by dragging the scroll bar.
- See how the text coming from "hidden" suddenly changes to bold. You can also scroll back to the top, and the text coming from "hidden" at the top turns bold.
- Open this topic: https://help.inschool.fi/VAKA/fi/Viesti ... ttajat.htm (in this, the side menu is so short that it doesn't overflow the screen)
- Click the "Laajenna ohje" button (this opens the drop-down headings) or manually open the headings one by one.
- Scroll down the page using the mouse wheel or by dragging the scroll bar.
- The text remains normal.
- However, if you reduce the browser window vertically so that the TOC gets a scroll bar, the bolding issue reappears when scrolling.