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:
Sam Atkins 2021-07-22 17:51:07 +01:00 committed by Andreas Kling
commit 7439fbd896
Notes: sideshowbarker 2024-07-18 07:43:07 +09:00
9 changed files with 82 additions and 38 deletions

View file

@ -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);