LibWeb: Apply base presentational hints across the board

This commit is contained in:
Psychpsyo 2026-02-04 10:22:52 +01:00 committed by Alexander Kalenik
parent ff2acd1d33
commit b8b0522cdc
Notes: github-actions[bot] 2026-02-06 10:35:23 +00:00
19 changed files with 23 additions and 0 deletions

View file

@ -55,6 +55,7 @@ bool HTMLTableCellElement::is_presentational_hint(FlyString const& name) const
void HTMLTableCellElement::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#tables-2:rules-for-parsing-a-legacy-colour-value