And to demonstrate, and let others see the wonders of Dark Mode and stylesheets, the attached is an example of this.
I reduced the original to just one paragraph and one table. Then I duplicated this and the stylesheet. In one of the stylesheets, I remove all the "background-color: #fff;". The table that does not have this can be read in dark mode.
The reason this works in inverted mode is that the page is rendered and then inverted. For Dark Mode, there is probably a base stylesheet used by the device that applies the dark mode colours. As this element actually sets the colour for the background, it is used. And as the text colour is not set, it gets set to white by the Dark Mode colours. There will be more than just a stylesheet being used to get Dark Mode. There is some background/driver/screen updating changes to try to get the best result.
And, the above is my guess as how this works. It fits with the behaviour we see, but, it might not be a simple stylesheet, it might be handled in some other way.
|