LibWeb: Mark more body element attributes as presentational hints

This commit is contained in:
Andreas Kling
2025-02-22 14:54:36 +01:00
committed by Andreas Kling
parent a2fa3cbd69
commit 2725142db9

View File

@@ -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<CSS::CascadedProperties> cascaded_properties) const