mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-26 01:35:08 +02:00
LibWeb: Mark more body element attributes as presentational hints
This commit is contained in:
committed by
Andreas Kling
parent
a2fa3cbd69
commit
2725142db9
Notes:
github-actions[bot]
2025-02-22 19:03:33 +00:00
Author: https://github.com/awesomekling Commit: https://github.com/LadybirdBrowser/ladybird/commit/2725142db9d Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/3654
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user