mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-04-23 21:14:31 +00:00
LibHTML: The CSS parser should tolerate whitespace-only stylesheets
This commit is contained in:
@@ -345,6 +345,10 @@ public:
|
||||
|
||||
void parse_rule()
|
||||
{
|
||||
consume_whitespace_or_comments();
|
||||
if (index >= css.length())
|
||||
return;
|
||||
|
||||
// FIXME: We ignore @media rules for now.
|
||||
if (next_is("@media")) {
|
||||
while (peek() != '{')
|
||||
|
||||
Reference in New Issue
Block a user