From 547fefa3664eee4839552757a6b3810444127671 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Tue, 6 Jul 2021 13:55:34 +0100 Subject: [Fix] Fix visibility calculations --- src/libserver/css/css_rule.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/libserver/css') 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()); -- cgit v1.2.3