mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-25 19:04:58 +00:00
LibWeb/CSS: Replace is_generic_font_family() with a CSS enum
Also add the missing "math" value to it.
This commit is contained in:
@@ -796,7 +796,7 @@ GC::Ptr<CSSFontFaceRule> Parser::convert_to_font_face_rule(AtRule const& rule)
|
||||
break;
|
||||
}
|
||||
auto keyword = keyword_from_string(part.token().ident());
|
||||
if (keyword.has_value() && is_generic_font_family(keyword.value())) {
|
||||
if (keyword.has_value() && keyword_to_generic_font_family(keyword.value()).has_value()) {
|
||||
dbgln_if(CSS_PARSER_DEBUG, "CSSParser: @font-face font-family format invalid; discarding.");
|
||||
had_syntax_error = true;
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user