LibWeb: Properly serialize position/edge style values

This commit is contained in:
Gingeh 2024-11-29 22:44:14 +11:00 committed by Sam Atkins
commit 84150f972f
Notes: github-actions[bot] 2024-12-13 11:36:34 +00:00
21 changed files with 461 additions and 288 deletions

View file

@ -25,8 +25,8 @@ public:
static ValueComparingNonnullRefPtr<PositionStyleValue> create_center()
{
return adopt_ref(*new (nothrow) PositionStyleValue(
EdgeStyleValue::create(PositionEdge::Left, Percentage { 50 }),
EdgeStyleValue::create(PositionEdge::Top, Percentage { 50 })));
EdgeStyleValue::create(PositionEdge::Center, {}),
EdgeStyleValue::create(PositionEdge::Center, {})));
}
virtual ~PositionStyleValue() override = default;