From 525509cfe6de2cafc646e5ff470c0ce7a266ff48 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Wed, 16 Dec 2020 15:46:43 +0100 Subject: [PATCH] LibWeb: The fallback 'color' value should be black, not transparent Fixes #4425. --- Libraries/LibWeb/Layout/Node.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Libraries/LibWeb/Layout/Node.cpp b/Libraries/LibWeb/Layout/Node.cpp index 620333c01e..cb3f3e4831 100644 --- a/Libraries/LibWeb/Layout/Node.cpp +++ b/Libraries/LibWeb/Layout/Node.cpp @@ -250,7 +250,7 @@ void NodeWithStyle::apply_style(const CSS::StyleProperties& specified_style) if (auto list_style_type = specified_style.list_style_type(); list_style_type.has_value()) style.set_list_style_type(list_style_type.value()); - style.set_color(specified_style.color_or_fallback(CSS::PropertyID::Color, document(), Color::Transparent)); + style.set_color(specified_style.color_or_fallback(CSS::PropertyID::Color, document(), Color::Black)); style.set_background_color(specified_style.color_or_fallback(CSS::PropertyID::BackgroundColor, document(), Color::Transparent)); style.set_z_index(specified_style.z_index());