mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-30 05:08:56 +00:00
LibWeb: Get CSS @import rules working in new parser
Also added css-import.html, which tests the 3 syntax variations on `@import` statements. Note that the optional media-query parameter to `@import` is not handled yet.
This commit is contained in:
committed by
Andreas Kling
parent
8b2e76b838
commit
7439fbd896
@@ -846,7 +846,7 @@ Token Tokenizer::consume_a_token()
|
||||
if (would_start_an_identifier()) {
|
||||
auto name = consume_a_name();
|
||||
|
||||
return create_value_token(Token::Type::AtKeyword, input);
|
||||
return create_value_token(Token::Type::AtKeyword, name);
|
||||
}
|
||||
|
||||
return create_value_token(Token::Type::Delim, input);
|
||||
|
||||
Reference in New Issue
Block a user