Recently, I encountered a puzzling issue on Google Chrome. I am not sure if the error lies with Google or within my code.
When I set the div as display: none; and then show it again, the PDF view only shows a grey background. However, if I zoom in or out, the content appears again.
To demonstrate the error, I captured these screenshots:
My Google Chrome version is 91.0.4472.77 64 bits
https://i.sstatic.net/TPI0f.png
After applying display:none