mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-26 04:02:27 +00:00
LibWeb: Serialize grid-area
as auto
if all sub-properties are auto
This commit is contained in:
parent
57d0c563e0
commit
c029a9c98c
Notes:
github-actions[bot]
2025-03-20 17:00:47 +00:00
Author: https://github.com/tcl3
Commit: c029a9c98c
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4004
Reviewed-by: https://github.com/AtkinsSJ ✅
4 changed files with 14 additions and 12 deletions
|
@ -293,6 +293,8 @@ String ShorthandStyleValue::to_string(SerializationMode mode) const
|
|||
builder.appendff(" / {}", row_end.grid_track_placement().to_string());
|
||||
if (!column_end.grid_track_placement().is_auto())
|
||||
builder.appendff(" / {}", column_end.grid_track_placement().to_string());
|
||||
if (builder.is_empty())
|
||||
return "auto"_string;
|
||||
return MUST(builder.to_string());
|
||||
}
|
||||
// FIXME: Serialize Grid differently once we support it better!
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue