diff --git a/apps/readest-app/src/utils/style.ts b/apps/readest-app/src/utils/style.ts index af2c66f5..d33d7793 100644 --- a/apps/readest-app/src/utils/style.ts +++ b/apps/readest-app/src/utils/style.ts @@ -162,7 +162,10 @@ const getColorStyles = ( mix-blend-mode: multiply; } /* inline images */ - p img, span img, sup img { + *:has(> img.has-text-siblings):not(body) { + background-color: ${bg}; + } + p img.has-text-siblings, span img.has-text-siblings, sup img.has-text-siblings { mix-blend-mode: ${isDarkMode ? 'screen' : 'multiply'}; } table {