LibHTML: Ignore all CSS rules starting with "@" for now

This commit is contained in:
Andreas Kling 2019-12-30 17:09:00 +01:00
parent a88d409c74
commit 816d3e6208
Notes: sideshowbarker 2024-07-19 10:31:57 +09:00

View File

@ -528,8 +528,8 @@ public:
if (index >= css.length()) if (index >= css.length())
return; return;
// FIXME: We ignore @media rules for now. // FIXME: We ignore @-rules for now.
if (next_is("@media")) { if (peek() == '@') {
while (peek() != '{') while (peek() != '{')
consume_one(); consume_one();
int level = 0; int level = 0;