LibWeb: The fallback 'color' value should be black, not transparent
Fixes #4425.
This commit is contained in:
parent
2759d518b7
commit
525509cfe6
Notes:
sideshowbarker
2024-07-19 00:48:06 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/525509cfe6d
1 changed files with 1 additions and 1 deletions
|
@ -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());
|
||||
|
|
Loading…
Add table
Reference in a new issue