mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 13:48:12 +00:00
LibWeb: Turn the <table height> attribute into the CSS height property
This matches what other engines do.
This commit is contained in:
parent
7c53f14bbc
commit
9f2338a5f5
1 changed files with 5 additions and 0 deletions
|
@ -46,6 +46,11 @@ void HTMLTableElement::apply_presentational_hints(CSS::StyleProperties& style) c
|
||||||
style.set_property(CSS::PropertyID::Width, parsed_value.release_nonnull());
|
style.set_property(CSS::PropertyID::Width, parsed_value.release_nonnull());
|
||||||
return;
|
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) {
|
if (name == HTML::AttributeNames::bgcolor) {
|
||||||
auto color = Color::from_string(value);
|
auto color = Color::from_string(value);
|
||||||
if (color.has_value())
|
if (color.has_value())
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue