jothepro / doxygen-awesome-css

Custom CSS theme for doxygen html-documentation with lots of customization parameters.
https://jothepro.github.io/doxygen-awesome-css/
MIT License
981 stars 112 forks source link

Black background on iframes (graphics, search) in dark mode #51

Closed jothepro closed 2 years ago

jothepro commented 2 years ago

On Chrome 94 all elements embedded in iframes (e.g. dependency graphs, search results) do sometimes have a black background:

Bildschirmfoto 2021-10-08 um 19 30 29

How to reproduce

I can reproduce this on Chrome 94 on macOS and on Chrome for Android. Other supported browser don't seem to be affected. I don't know when this started to be a problem and I don't know what the reason might be.

Given the fact that it is not consistent (it only starts to be a problem after a page refresh or if the page is loaded in dark mode) even let's me consider that this might be a bug in Chrome?

If you want to help, pls let me know if you can reproduce the issue or if you have an idea what is going on... 🤔

dmadison commented 2 years ago

I can reproduce this. Chrome 94.0.4606.81 on Windows using the link in your comment. Disabling the color-scheme: dark property seems to fix it? E.g.:

iframe {
    color-scheme: normal;
}

Although I'm just testing in the page inspector and a page refresh may show the issue again.

I found this article which has some insights about iframes and transparency bugginess in Chrome. It may explain what's going on.

jothepro commented 2 years ago

I can confirm that this fixes the problem! Thank you so much, I'd never would have found this! This will be included in the upcoming 1.6.1 patch release: https://github.com/jothepro/doxygen-awesome-css/commit/c52f8129d0c8f21d5f4d9d099a3e158f98483dbe