diff --git a/Libraries/LibWeb/HTML/HTMLTableSectionElement.cpp b/Libraries/LibWeb/HTML/HTMLTableSectionElement.cpp
index 7db36930493..29dfe580246 100644
--- a/Libraries/LibWeb/HTML/HTMLTableSectionElement.cpp
+++ b/Libraries/LibWeb/HTML/HTMLTableSectionElement.cpp
@@ -107,7 +107,8 @@ bool HTMLTableSectionElement::is_presentational_hint(FlyString const& name) cons
return first_is_one_of(name,
HTML::AttributeNames::background,
- HTML::AttributeNames::bgcolor);
+ HTML::AttributeNames::bgcolor,
+ HTML::AttributeNames::height);
}
void HTMLTableSectionElement::apply_presentational_hints(GC::Ref cascaded_properties) const
@@ -122,6 +123,9 @@ void HTMLTableSectionElement::apply_presentational_hints(GC::Refset_property_from_presentational_hint(CSS::PropertyID::BackgroundColor, CSS::CSSColorValue::create_from_color(color.value()));
+ } else if (name == HTML::AttributeNames::height) {
+ if (auto parsed_value = parse_dimension_value(value))
+ cascaded_properties->set_property_from_presentational_hint(CSS::PropertyID::Height, parsed_value.release_nonnull());
}
});
}
diff --git a/Tests/LibWeb/Ref/expected/wpt-import/html/rendering/non-replaced-elements/tables/table-row-group-height-ref.html b/Tests/LibWeb/Ref/expected/wpt-import/html/rendering/non-replaced-elements/tables/table-row-group-height-ref.html
new file mode 100644
index 00000000000..e5279080f08
--- /dev/null
+++ b/Tests/LibWeb/Ref/expected/wpt-import/html/rendering/non-replaced-elements/tables/table-row-group-height-ref.html
@@ -0,0 +1,30 @@
+
+
+
+
+
+ thead text
+ |
+
+
+
+
+
+
+
+
+ tbody text
+ |
+
+
+
+
+
+
+
+
+ tfoot text
+ |
+
+
+
diff --git a/Tests/LibWeb/Ref/input/wpt-import/html/rendering/non-replaced-elements/tables/table-row-group-height.html b/Tests/LibWeb/Ref/input/wpt-import/html/rendering/non-replaced-elements/tables/table-row-group-height.html
new file mode 100644
index 00000000000..84aa92390c7
--- /dev/null
+++ b/Tests/LibWeb/Ref/input/wpt-import/html/rendering/non-replaced-elements/tables/table-row-group-height.html
@@ -0,0 +1,31 @@
+
+
+
+
+
+
+ thead text
+ |
+
+
+
+
+
+
+
+
+ tbody text
+ |
+
+
+
+
+
+
+
+
+ tfoot text
+ |
+
+
+