fix(css): mix blend only inline images, closes #3112 (#3116)

This commit is contained in:
Huang Xin
2026-01-30 05:17:16 +01:00
committed by GitHub
parent bc94f3f790
commit c1460f4b85
+4 -1
View File
@@ -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 {