mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 06:07:44 +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:
parent
8b2e76b838
commit
7439fbd896
9 changed files with 82 additions and 38 deletions
|
@ -82,6 +82,12 @@ public:
|
|||
return m_value.string_view();
|
||||
}
|
||||
|
||||
StringView at_keyword() const
|
||||
{
|
||||
VERIFY(m_type == Type::AtKeyword);
|
||||
return m_value.string_view();
|
||||
}
|
||||
|
||||
bool is(NumberType number_type) const { return is(Token::Type::Number) && m_number_type == number_type; }
|
||||
|
||||
int integer() const
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue