LibWeb: Treat CSS at-rule names as case-insensitive

This commit is contained in:
Tim Ledbetter 2025-03-09 17:14:30 +00:00 committed by Jelle Raaijmakers
commit a6efdb1068
Notes: github-actions[bot] 2025-03-10 11:43:59 +00:00
3 changed files with 62 additions and 1 deletions

View file

@ -1227,7 +1227,7 @@ Token Tokenizer::consume_a_token()
// If the next 3 input code points would start an ident sequence, consume an ident sequence, create
// an <at-keyword-token> with its value set to the returned value, and return it.
if (would_start_an_ident_sequence(peek_triplet())) {
auto name = consume_an_ident_sequence();
auto name = consume_an_ident_sequence().to_ascii_lowercase();
return create_value_token(Token::Type::AtKeyword, move(name), input_since(start_byte_offset));
}