aboutsummaryrefslogtreecommitdiffstats
path: root/src/libserver/css
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2021-07-06 13:55:34 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2021-07-06 13:55:34 +0100
commit547fefa3664eee4839552757a6b3810444127671 (patch)
tree9ecec5d82552cfce6835b62499ee002d4adf76b6 /src/libserver/css
parent070b57bd415d0e4df3d7d311bcce0ce841505b9b (diff)
downloadrspamd-547fefa3664eee4839552757a6b3810444127671.tar.gz
rspamd-547fefa3664eee4839552757a6b3810444127671.zip
[Fix] Fix visibility calculations
Diffstat (limited to 'src/libserver/css')
-rw-r--r--src/libserver/css/css_rule.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libserver/css/css_rule.cxx b/src/libserver/css/css_rule.cxx
index d8c3a04dd..17301e724 100644
--- a/src/libserver/css/css_rule.cxx
+++ b/src/libserver/css/css_rule.cxx
@@ -413,7 +413,8 @@ css_declarations_block::compile_to_block(rspamd_mempool_t *pool) const -> rspamd
opacity = vals.back().to_number().value_or(opacity);
break;
}
- case css_property_type::PROPERTY_FONT_COLOR: {
+ case css_property_type::PROPERTY_FONT_COLOR:
+ case css_property_type::PROPERTY_COLOR: {
auto color = vals.back().to_color();
if (color) {
block->set_fgcolor(color.value());