mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-16 14:02:00 +00:00
LibWeb/CSS: Stop converting at-rule names to lowercase
This basically reverts a6efdb1068
.
The test added there still passes without the ad-hoc behaviour, so let's
remove it.
This commit is contained in:
parent
d5bee680b0
commit
a6ff088984
Notes:
github-actions[bot]
2025-07-09 14:06:13 +00:00
Author: https://github.com/AtkinsSJ
Commit: a6ff088984
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/5370
Reviewed-by: https://github.com/tcl3 ✅
1 changed files with 2 additions and 5 deletions
|
@ -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 <at-keyword-token> 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 <delim-token> with its value set to the current input code point.
|
||||
return Token::create_delim(input, input_since(start_byte_offset));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue