mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-28 12:18:25 +00:00
LibWeb: The fallback 'color' value should be black, not transparent
Fixes #4425.
This commit is contained in:
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user