diff --git a/Libraries/LibWeb/DOM/HTMLTableElement.cpp b/Libraries/LibWeb/DOM/HTMLTableElement.cpp index 254b9c50a1..d36b165d8b 100644 --- a/Libraries/LibWeb/DOM/HTMLTableElement.cpp +++ b/Libraries/LibWeb/DOM/HTMLTableElement.cpp @@ -43,6 +43,13 @@ void HTMLTableElement::apply_presentational_hints(StyleProperties& style) const for_each_attribute([&](auto& name, auto& value) { if (name == HTML::AttributeNames::width) { style.set_property(CSS::PropertyID::Width, parse_css_value(value)); + return; + } + if (name == HTML::AttributeNames::bgcolor) { + auto color = Color::from_string(value); + if (color.has_value()) + style.set_property(CSS::PropertyID::BackgroundColor, ColorStyleValue::create(color.value())); + return; } }); }