mirror of
https://github.com/RGBCube/serenity
synced 2025-05-19 00:15:08 +00:00
LibHTML: Tolerate empty CSS rules
A rule that contains nothing but whitespace is still a valid rule.
This commit is contained in:
parent
56dad2272c
commit
1fd5869490
1 changed files with 2 additions and 0 deletions
|
@ -329,6 +329,8 @@ public:
|
|||
consume_one();
|
||||
return {};
|
||||
}
|
||||
if (peek() == '}')
|
||||
return {};
|
||||
buffer.clear();
|
||||
while (is_valid_property_name_char(peek()))
|
||||
buffer.append(consume_one());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue