From a6ff088984fb7a06b90a9ed930c4df9899e3fc4a Mon Sep 17 00:00:00 2001 From: Sam Atkins Date: Wed, 9 Jul 2025 13:44:28 +0100 Subject: [PATCH] LibWeb/CSS: Stop converting at-rule names to lowercase This basically reverts a6efdb106807646fc87553941f7ad80c925c76a6. The test added there still passes without the ad-hoc behaviour, so let's remove it. --- Libraries/LibWeb/CSS/Parser/Tokenizer.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/Libraries/LibWeb/CSS/Parser/Tokenizer.cpp b/Libraries/LibWeb/CSS/Parser/Tokenizer.cpp index e966338b1a2..e5ea0e1df8f 100644 --- a/Libraries/LibWeb/CSS/Parser/Tokenizer.cpp +++ b/Libraries/LibWeb/CSS/Parser/Tokenizer.cpp @@ -1149,11 +1149,8 @@ Token Tokenizer::consume_a_token() dbgln_if(CSS_TOKENIZER_DEBUG, "is at"); // If the next 3 input code points would start an ident sequence, consume an ident sequence, create // an with its value set to the returned value, and return it. - if (would_start_an_ident_sequence(peek_triplet())) { - // FIXME: Do we need to set this to ascii lowercase? - auto name = consume_an_ident_sequence().to_ascii_lowercase(); - return Token::create_at_keyword(move(name), input_since(start_byte_offset)); - } + if (would_start_an_ident_sequence(peek_triplet())) + return Token::create_at_keyword(consume_an_ident_sequence(), input_since(start_byte_offset)); // Otherwise, return a with its value set to the current input code point. return Token::create_delim(input, input_since(start_byte_offset));