diff --git a/Libraries/LibWeb/DOM/HTMLTableCellElement.cpp b/Libraries/LibWeb/DOM/HTMLTableCellElement.cpp
index a76ce443150..7a7a5fa9941 100644
--- a/Libraries/LibWeb/DOM/HTMLTableCellElement.cpp
+++ b/Libraries/LibWeb/DOM/HTMLTableCellElement.cpp
@@ -25,6 +25,7 @@
*/
#include
+#include
namespace Web {
@@ -53,6 +54,11 @@ void HTMLTableCellElement::apply_presentational_hints(StyleProperties& style) co
style.set_property(CSS::PropertyID::TextAlign, value.view());
return;
}
+ if (name == HTML::AttributeNames::width) {
+ if (auto parsed_value = parse_css_value(CSS::ParsingContext(document()), value))
+ style.set_property(CSS::PropertyID::Width, parsed_value.release_nonnull());
+ return;
+ }
});
}