mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-30 04:39:06 +00:00
LibWeb/CSS: Serialize empty grid-template-* values correctly
Previously we would serialize these as the empty string. eg, this: ``` <div style="grid-auto-columns: auto"></div> ``` would have a computed `grid-auto-columns` value of ``.
This commit is contained in:
parent
69d064697a
commit
7c2680b7ef
Notes:
github-actions[bot]
2024-10-16 06:35:06 +00:00
Author: https://github.com/AtkinsSJ
Commit: 7c2680b7ef
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/1788
Reviewed-by: https://github.com/tcl3
3 changed files with 10 additions and 4 deletions
|
@ -244,6 +244,9 @@ GridTrackSizeList GridTrackSizeList::make_none()
|
|||
|
||||
String GridTrackSizeList::to_string() const
|
||||
{
|
||||
if (m_list.is_empty())
|
||||
return "auto"_string;
|
||||
|
||||
StringBuilder builder;
|
||||
for (auto const& line_definition_or_name : m_list) {
|
||||
if (!builder.is_empty())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue