summaryrefslogtreecommitdiff
path: root/Userland/Libraries
diff options
context:
space:
mode:
Diffstat (limited to 'Userland/Libraries')
-rw-r--r--Userland/Libraries/LibWeb/CSS/Parser/Parser.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/Userland/Libraries/LibWeb/CSS/Parser/Parser.cpp b/Userland/Libraries/LibWeb/CSS/Parser/Parser.cpp
index 385a2ab1b2..dff94a6b87 100644
--- a/Userland/Libraries/LibWeb/CSS/Parser/Parser.cpp
+++ b/Userland/Libraries/LibWeb/CSS/Parser/Parser.cpp
@@ -1600,8 +1600,13 @@ RefPtr<StyleValue> Parser::parse_image_value(ParsingContext const& context, Styl
auto& value = function_values[i];
if (value.is(Token::Type::Whitespace))
continue;
- if (value.is(Token::Type::String))
+ if (value.is(Token::Type::String)) {
+ // FIXME: RFC2397
+ if (value.token().string().starts_with("data:"))
+ continue;
+
return ImageStyleValue::create(context.complete_url(value.token().string()), *context.document());
+ }
}
}
// FIXME: Handle gradients.