mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-26 01:35:08 +02:00
LibWeb: Apply base presentational hints across the board
This commit is contained in:
committed by
Alexander Kalenik
parent
ff2acd1d33
commit
b8b0522cdc
Notes:
github-actions[bot]
2026-02-06 10:35:23 +00:00
Author: https://github.com/Psychpsyo Commit: https://github.com/LadybirdBrowser/ladybird/commit/b8b0522cdcf Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/7754
@@ -63,6 +63,7 @@ bool HTMLBodyElement::is_presentational_hint(FlyString const& name) const
|
||||
|
||||
void HTMLBodyElement::apply_presentational_hints(GC::Ref<CSS::CascadedProperties> cascaded_properties) const
|
||||
{
|
||||
Base::apply_presentational_hints(cascaded_properties);
|
||||
for_each_attribute([&](auto& name, auto& value) {
|
||||
if (name == HTML::AttributeNames::bgcolor) {
|
||||
// https://html.spec.whatwg.org/multipage/rendering.html#the-page:rules-for-parsing-a-legacy-colour-value
|
||||
|
||||
Reference in New Issue
Block a user