From c1460f4b85e8c942dabec751249157d907d7e489 Mon Sep 17 00:00:00 2001 From: Huang Xin Date: Fri, 30 Jan 2026 05:17:16 +0100 Subject: [PATCH] fix(css): mix blend only inline images, closes #3112 (#3116) --- apps/readest-app/src/utils/style.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 {