diff --git a/Libraries/LibWeb/HTML/HTMLBodyElement.cpp b/Libraries/LibWeb/HTML/HTMLBodyElement.cpp
index 4f8bac83c43..3fd060ce209 100644
--- a/Libraries/LibWeb/HTML/HTMLBodyElement.cpp
+++ b/Libraries/LibWeb/HTML/HTMLBodyElement.cpp
@@ -49,7 +49,13 @@ bool HTMLBodyElement::is_presentational_hint(FlyString const& name) const
return first_is_one_of(name,
HTML::AttributeNames::bgcolor,
HTML::AttributeNames::text,
- HTML::AttributeNames::background);
+ HTML::AttributeNames::background,
+ HTML::AttributeNames::marginheight,
+ HTML::AttributeNames::marginwidth,
+ HTML::AttributeNames::topmargin,
+ HTML::AttributeNames::rightmargin,
+ HTML::AttributeNames::bottommargin,
+ HTML::AttributeNames::leftmargin);
}
void HTMLBodyElement::apply_presentational_hints(GC::Ref cascaded_properties) const