mirror of
https://github.com/RGBCube/serenity
synced 2025-07-04 21:47:37 +00:00
LibHTML: The CSS parser should tolerate whitespace-only stylesheets
This commit is contained in:
parent
9eaaaeec6e
commit
ea5da0f9b5
1 changed files with 4 additions and 0 deletions
|
@ -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() != '{')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue