LibWeb: Serialize inset() arguments as positional value list

This commit is contained in:
Callum Law
2026-01-04 16:29:38 +13:00
committed by Jelle Raaijmakers
parent 00af50d49e
commit cb1425877a
Notes: github-actions[bot] 2026-01-06 09:51:41 +00:00
7 changed files with 346 additions and 347 deletions

View File

@@ -59,7 +59,7 @@ Gfx::Path Inset::to_path(CSSPixelRect reference_box, Layout::Node const& node) c
String Inset::to_string(SerializationMode mode) const
{
return MUST(String::formatted("inset({} {} {} {})", top->to_string(mode), right->to_string(mode), bottom->to_string(mode), left->to_string(mode)));
return MUST(String::formatted("inset({})", serialize_a_positional_value_list({ top, right, bottom, left }, mode)));
}
String Xywh::to_string(SerializationMode mode) const