1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-14 18:54:57 +00:00

LibWeb: Turn the <table height> attribute into the CSS height property

This matches what other engines do.
This commit is contained in:
Andreas Kling 2020-08-26 21:16:29 +02:00
parent 7c53f14bbc
commit 9f2338a5f5

View file

@ -46,6 +46,11 @@ void HTMLTableElement::apply_presentational_hints(CSS::StyleProperties& style) c
style.set_property(CSS::PropertyID::Width, parsed_value.release_nonnull());
return;
}
if (name == HTML::AttributeNames::height) {
if (auto parsed_value = parse_html_length(document(), value))
style.set_property(CSS::PropertyID::Height, parsed_value.release_nonnull());
return;
}
if (name == HTML::AttributeNames::bgcolor) {
auto color = Color::from_string(value);
if (color.has_value())