mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-26 17:55:07 +02:00
LibWeb: Serialize inset() arguments as positional value list
This commit is contained in:
committed by
Jelle Raaijmakers
parent
00af50d49e
commit
cb1425877a
Notes:
github-actions[bot]
2026-01-06 09:51:41 +00:00
Author: https://github.com/Calme1709 Commit: https://github.com/LadybirdBrowser/ladybird/commit/cb1425877ad Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/7339 Reviewed-by: https://github.com/gmta ✅
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user