From 816d3e6208bb4d24267d3c87833e550054a5248b Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Mon, 30 Dec 2019 17:09:00 +0100 Subject: [PATCH] LibHTML: Ignore all CSS rules starting with "@" for now --- Libraries/LibHTML/Parser/CSSParser.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Libraries/LibHTML/Parser/CSSParser.cpp b/Libraries/LibHTML/Parser/CSSParser.cpp index 2cbdf111a32..7a8b814ec0c 100644 --- a/Libraries/LibHTML/Parser/CSSParser.cpp +++ b/Libraries/LibHTML/Parser/CSSParser.cpp @@ -528,8 +528,8 @@ public: if (index >= css.length()) return; - // FIXME: We ignore @media rules for now. - if (next_is("@media")) { + // FIXME: We ignore @-rules for now. + if (peek() == '@') { while (peek() != '{') consume_one(); int level = 0;