diff options
Diffstat (limited to 'src/libserver/css/css_value.cxx')
-rw-r--r-- | src/libserver/css/css_value.cxx | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/libserver/css/css_value.cxx b/src/libserver/css/css_value.cxx index eb893f21c..520127da8 100644 --- a/src/libserver/css/css_value.cxx +++ b/src/libserver/css/css_value.cxx @@ -15,13 +15,28 @@ */ #include "css_value.hxx" +#include "css_colors_list.hxx" +#include "contrib/robin-hood/robin_hood.h" namespace rspamd::css { + + tl::expected<css_value,css_parse_error> css_value::from_css_block(const css_consumed_block &bl) { return tl::unexpected{css_parse_error(css_parse_error_type::PARSE_ERROR_NYI)}; } +auto css_value::maybe_color_from_string(const std::string_view &input) + -> std::optional<css_value> +{ + auto found_it = css_colors_map.find(input); + + if (found_it != css_colors_map.end()) { + + } + + return std::nullopt; +} } |