From 2725142db9d238b1c7fdbe40782cb341ecf17669 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Sat, 22 Feb 2025 14:54:36 +0100 Subject: [PATCH] LibWeb: Mark more body element attributes as presentational hints --- Libraries/LibWeb/HTML/HTMLBodyElement.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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