diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2021-10-11 15:26:37 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2021-10-11 15:26:37 +0100 |
commit | 15701e9dc249bbcd4d5a5a4ada8685d708086e1b (patch) | |
tree | 816d905738817ac248b6cc421cae2a9e1010260e | |
parent | b5cdc5c6b35898a36f04245ceb882c52d8f58e3e (diff) | |
download | rspamd-15701e9dc249bbcd4d5a5a4ada8685d708086e1b.tar.gz rspamd-15701e9dc249bbcd4d5a5a4ada8685d708086e1b.zip |
[Fix] Html: Fix the case where only bgcolor is explicitly set
-rw-r--r-- | src/libserver/html/html_block.hxx | 8 |
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; + } } } |