LibWeb/CSS: Make empty GridTrackSize value serialize to "none"

This is the default value of the `grid-template-rows` and
`grid-template-columns` properties.
This commit is contained in:
Tim Ledbetter 2025-03-22 00:35:08 +00:00 committed by Alexander Kalenik
parent 9bdd22c6b1
commit 7b0b6e7493
Notes: github-actions[bot] 2025-03-22 16:34:33 +00:00
13 changed files with 101 additions and 46 deletions

View file

@ -245,7 +245,7 @@ GridTrackSizeList GridTrackSizeList::make_none()
String GridTrackSizeList::to_string() const
{
if (m_list.is_empty())
return "auto"_string;
return "none"_string;
StringBuilder builder;
for (auto const& line_definition_or_name : m_list) {