mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 04:09:13 +00:00
LibWeb: Ensure shortest serialization is used for grid-column
values
This commit is contained in:
parent
6811264b11
commit
f0917ea150
Notes:
github-actions[bot]
2025-03-19 01:08:57 +00:00
Author: https://github.com/tcl3
Commit: f0917ea150
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/3987
3 changed files with 10 additions and 10 deletions
|
@ -330,7 +330,7 @@ String ShorthandStyleValue::to_string(SerializationMode mode) const
|
|||
case PropertyID::GridColumn: {
|
||||
auto start = longhand(PropertyID::GridColumnStart);
|
||||
auto end = longhand(PropertyID::GridColumnEnd);
|
||||
if (end->as_grid_track_placement().grid_track_placement().is_auto())
|
||||
if (end->as_grid_track_placement().grid_track_placement().is_auto() || start == end)
|
||||
return start->to_string(mode);
|
||||
return MUST(String::formatted("{} / {}", start->to_string(mode), end->to_string(mode)));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue