mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-12 14:12:52 +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
Notes:
sideshowbarker
2024-07-19 11:08:28 +09:00
Author: https://github.com/awesomekling
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