mirror of
https://github.com/RGBCube/serenity
synced 2025-05-14 14:44:58 +00:00
LibWeb: Treat width/height on td/th elements as non-zero dimension value
This commit is contained in:
parent
71e89fe134
commit
e96b3315ad
1 changed files with 5 additions and 1 deletions
|
@ -36,9 +36,13 @@ void HTMLTableCellElement::apply_presentational_hints(CSS::StyleProperties& styl
|
|||
return;
|
||||
}
|
||||
if (name == HTML::AttributeNames::width) {
|
||||
if (auto parsed_value = parse_html_length(document(), value))
|
||||
if (auto parsed_value = parse_nonzero_dimension_value(value))
|
||||
style.set_property(CSS::PropertyID::Width, parsed_value.release_nonnull());
|
||||
return;
|
||||
} else if (name == HTML::AttributeNames::height) {
|
||||
if (auto parsed_value = parse_nonzero_dimension_value(value))
|
||||
style.set_property(CSS::PropertyID::Height, parsed_value.release_nonnull());
|
||||
return;
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue