mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-26 06:18:59 +00:00
LibWeb: Mark more body element attributes as presentational hints
This commit is contained in:
parent
a2fa3cbd69
commit
2725142db9
Notes:
github-actions[bot]
2025-02-22 19:03:33 +00:00
Author: https://github.com/awesomekling
Commit: 2725142db9
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/3654
1 changed files with 7 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue