aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/libserver/html/html_block.hxx8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/libserver/html/html_block.hxx b/src/libserver/html/html_block.hxx
index 24a8ad3e5..4a69b7325 100644
--- a/src/libserver/html/html_block.hxx
+++ b/src/libserver/html/html_block.hxx
@@ -267,9 +267,11 @@ struct html_block {
}
}
else if (bg_color_mask) {
- if (is_similar_colors(rspamd::css::css_color::black(), bg_color)) {
- visibility_mask = html_block::transparent_flag;
- return;
+ if (bg_color.alpha > 10) {
+ if (is_similar_colors(rspamd::css::css_color::black(), bg_color)) {
+ visibility_mask = html_block::transparent_flag;
+ return;
+ }
}
}