From 4805447c22f5d66943ffff8ec2adefd4bc6cb149 Mon Sep 17 00:00:00 2001 From: Nicolas Ramz Date: Wed, 5 Jul 2023 11:58:59 +0200 Subject: [PATCH] LibWeb: Support cellspacing attribute on table elements --- Userland/Libraries/LibWeb/HTML/HTMLTableElement.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Userland/Libraries/LibWeb/HTML/HTMLTableElement.cpp b/Userland/Libraries/LibWeb/HTML/HTMLTableElement.cpp index e5344c15e21..7522b518cfe 100644 --- a/Userland/Libraries/LibWeb/HTML/HTMLTableElement.cpp +++ b/Userland/Libraries/LibWeb/HTML/HTMLTableElement.cpp @@ -61,6 +61,11 @@ void HTMLTableElement::apply_presentational_hints(CSS::StyleProperties& style) c style.set_property(CSS::PropertyID::BackgroundColor, CSS::ColorStyleValue::create(color.value()).release_value_but_fixme_should_propagate_errors()); return; } + if (name == HTML::AttributeNames::cellspacing) { + if (auto parsed_value = parse_dimension_value(value)) + style.set_property(CSS::PropertyID::BorderSpacing, parsed_value.release_nonnull()); + return; + } }); }