View Single Post
Old 04-04-2021, 04:59 AM   #4
Tex2002ans
Wizard
Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.
 
Posts: 2,306
Karma: 13057279
Join Date: Jul 2012
Device: Kobo Forma, Nook
Quote:
Originally Posted by morty92222 View Post
Thank you. But why does my CSS work for day mode if the reader got its own already?
Users can choose whatever background colors they want. When you force colors, this may lead to a serious readability problem.

The most common of these is tools/programs/people accidentally setting the text as "black":

Code:
p {
color: #000000;
}
And people don't notice it, because "white background is the default" (see Word, LibreOffice, InDesign, etc. etc.).

So when Apple flips over to Night Mode, they probably specifically override font colors to make sure that "black-on-black" (or another unreadable combination) doesn't happen.

A lot of this was discussed in:

2020: "Colored Text, EPUB, Android Dark Mode"

or I explained a similar situation with images of music notes and changing background/font colors:

2016: "Problem with inline image" (Posts #14 + #22)

Last edited by Tex2002ans; 04-04-2021 at 05:05 AM.
Tex2002ans is offline   Reply With Quote