LibWeb: The fallback 'color' value should be black, not transparent

Fixes #4425.
This commit is contained in:
Andreas Kling 2020-12-16 15:46:43 +01:00
parent 2759d518b7
commit 525509cfe6
Notes: sideshowbarker 2024-07-19 00:48:06 +09:00

View file

@ -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());