mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-25 17:25:08 +02:00
LibWeb: Add missing AD-HOC comment to parse_family_name_value
This commit is contained in:
committed by
Tim Ledbetter
parent
b3795eb5bb
commit
6f226f3d2e
Notes:
github-actions[bot]
2026-03-20 14:08:04 +00:00
Author: https://github.com/Calme1709 Commit: https://github.com/LadybirdBrowser/ladybird/commit/6f226f3d2e8 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/8525 Reviewed-by: https://github.com/tcl3 ✅
@@ -449,6 +449,8 @@ RefPtr<StyleValue const> Parser::parse_family_name_value(TokenStream<ComponentVa
|
||||
return StringStyleValue::create(peek.token().string());
|
||||
}
|
||||
|
||||
// AD-HOC: We allow all <ident>'s rather than just <custom-ident>, although we check below that the whole value
|
||||
// isn't a CSS-wide keyword, see https://github.com/w3c/csswg-drafts/issues/13692
|
||||
if (peek.is(Token::Type::Ident)) {
|
||||
auto ident = tokens.consume_a_token().token().ident();
|
||||
parts.append(ident.to_string());
|
||||
|
||||
Reference in New Issue
Block a user